For our regressions we currently in essence use:
For which Stata outputs:
Here it says Random-effects GLS. According to a hausman test we should use random effects.
However, then there is the command xtgls available. What is the difference between xtreg re and xtgls? How do we know which one to use?
A related problem we have is to get R^2-values outputted with outreg2 for our panel data regressions -- maybe this is somehow related.
Code:
xtreg esg returncomeqy `controls', i(id) re robust
Code:
Random-effects GLS regression Number of obs = 1,794 Group variable: id Number of groups = 92
However, then there is the command xtgls available. What is the difference between xtreg re and xtgls? How do we know which one to use?
A related problem we have is to get R^2-values outputted with outreg2 for our panel data regressions -- maybe this is somehow related.
Comment