Hi all,
I am relatively noob at Stata and I am trying to construct variance decomposition of wages. I understand that if I use the command areg (or xtreg) y, abs(groupvar) I can obtain the within and the between components of my variance.
I wish to push my variance decomposition a little further: I want to decompose the variance of wage according to three components: across firms, within firms across occupations and within occupations.
Assuming I have enough observations at each level, is there a clever way to do this?
Thank you so much for your help.
Mathilde
I am relatively noob at Stata and I am trying to construct variance decomposition of wages. I understand that if I use the command areg (or xtreg) y, abs(groupvar) I can obtain the within and the between components of my variance.
I wish to push my variance decomposition a little further: I want to decompose the variance of wage according to three components: across firms, within firms across occupations and within occupations.
Assuming I have enough observations at each level, is there a clever way to do this?
Thank you so much for your help.
Mathilde
Comment