Hello, I am currently new to Stata and this forum as I am now writing my thesis. I am currently trying to arrive at a decent model but have some trouble choosing between a fixed and random model or OLS. The data is in panel form and consists of 4289 observations.
I did a test for heteroskedasticity and it showed that I should use robust standard errors, which I have done from now.
When I use xtreg with robust random effects, my sigma_u is 0 and xttest0 also shows that random effects are not present which means that pooled OLS is preferred over a random effect model if I have understood it correctly?
Moreover, when i use xtreg, fe, the F-test is significant, and a rhausman (rhausman) is also significant, which indicates that a fixed effect model is preferred both over pooled OLS and a random effect model?
However, when i conduct a fixed effect model, all my country dummy variables disappear (which are my only dummy variables), and my R-squared is a lot lower than it is with a pooled OLS and random effects model:
R-squared adjusted with Pooled OLS:
0.7819
R-squared with random effects:
Within = 0.2839
Between = 0.9769
Overall = 0.7832
R-squared with fixed effects:
Within = 0.3069
Between = 0.0947
Overall = 0.0009
Is fixed effect the way to go in this case even though the R-squared is lowered a lot? Why do they decrease so much when I use a fixed effect model?
Sorry for writing everything in a text. I tried to use -dataex- to display each regression but I kept getting this error message every time: "input statement exceeds linesize limit. Try specifying fewer variables"
Kind Regards,
Louis
I did a test for heteroskedasticity and it showed that I should use robust standard errors, which I have done from now.
When I use xtreg with robust random effects, my sigma_u is 0 and xttest0 also shows that random effects are not present which means that pooled OLS is preferred over a random effect model if I have understood it correctly?
Moreover, when i use xtreg, fe, the F-test is significant, and a rhausman (rhausman) is also significant, which indicates that a fixed effect model is preferred both over pooled OLS and a random effect model?
However, when i conduct a fixed effect model, all my country dummy variables disappear (which are my only dummy variables), and my R-squared is a lot lower than it is with a pooled OLS and random effects model:
R-squared adjusted with Pooled OLS:
0.7819
R-squared with random effects:
Within = 0.2839
Between = 0.9769
Overall = 0.7832
R-squared with fixed effects:
Within = 0.3069
Between = 0.0947
Overall = 0.0009
Is fixed effect the way to go in this case even though the R-squared is lowered a lot? Why do they decrease so much when I use a fixed effect model?
Sorry for writing everything in a text. I tried to use -dataex- to display each regression but I kept getting this error message every time: "input statement exceeds linesize limit. Try specifying fewer variables"
Kind Regards,
Louis
Comment