Dear users,
if you read xtreg postestimation's help file, it says:
" u calculates the prediction of u_i, the estimated fixed or random effect."
However, if you then read the "Methods and Formulas" under xtreg, fe (more precisely, page 23 here: http://www.stata.com/manuals13/xtxtreg.pdf), you can see that what Stata's xtreg is actually calculating is the whole time-invariant component. This component includes the fixed effect (unobserved heterogeneity) and all time-invariant variables and their respective coefficients. So, things like e.g. gender, race, etc will get lumped all together into the prediction. I confirmed this by running a second stage between those predicted values and the time-invariant factors, getting quite similar (!) values compared with those from the RE.
Notice however that the random effect is precisely that, the unobserved heterogeneity component. This means that predicted "effects" under both methods are not comprable.
I believe the help file should be very explicit on what the command is actually calculating. Otherwise, people like me get mislead about how easy is to do FE, and forget what is really going on.
if you read xtreg postestimation's help file, it says:
" u calculates the prediction of u_i, the estimated fixed or random effect."
However, if you then read the "Methods and Formulas" under xtreg, fe (more precisely, page 23 here: http://www.stata.com/manuals13/xtxtreg.pdf), you can see that what Stata's xtreg is actually calculating is the whole time-invariant component. This component includes the fixed effect (unobserved heterogeneity) and all time-invariant variables and their respective coefficients. So, things like e.g. gender, race, etc will get lumped all together into the prediction. I confirmed this by running a second stage between those predicted values and the time-invariant factors, getting quite similar (!) values compared with those from the RE.
Notice however that the random effect is precisely that, the unobserved heterogeneity component. This means that predicted "effects" under both methods are not comprable.
I believe the help file should be very explicit on what the command is actually calculating. Otherwise, people like me get mislead about how easy is to do FE, and forget what is really going on.
Comment