Dear Statalist,
I have a question about the difference between various options (i.e. xb, xbu, ue, u, and e) following predict in panel regressions. I first run a random-effects regression by xtreg, re robust, and may I ask if my following understandings are correct?
1. If I use xb, then I obtain fitted values that are exclusively explained by the independent variables (the model per se).
2. If I use xbu, then I obtain fitted values that combine the part that is explained by the independent variables and the part that is explained by the time-invariant individual effects.
3. If I use u, then I obtain the residuals that are explained by the time-invariant individual effects.
4. If I use e, then I obtain residuals that are exclusively due to stochastic errors or disturbance.
5. If I use ue, then I obtain the composite/overall residuals (individual effects+stochastic errors) that cannot be explained by the independent variables (the model per se).
Are these interpretations correct?
Thank you very much!
I have a question about the difference between various options (i.e. xb, xbu, ue, u, and e) following predict in panel regressions. I first run a random-effects regression by xtreg, re robust, and may I ask if my following understandings are correct?
1. If I use xb, then I obtain fitted values that are exclusively explained by the independent variables (the model per se).
2. If I use xbu, then I obtain fitted values that combine the part that is explained by the independent variables and the part that is explained by the time-invariant individual effects.
3. If I use u, then I obtain the residuals that are explained by the time-invariant individual effects.
4. If I use e, then I obtain residuals that are exclusively due to stochastic errors or disturbance.
5. If I use ue, then I obtain the composite/overall residuals (individual effects+stochastic errors) that cannot be explained by the independent variables (the model per se).
Are these interpretations correct?
Thank you very much!
Comment