Hi all,
I am working with a panel data set of about 180 countries spread over 27 years.
My data suffers from both serial correlation and heteroskedasticity, which I correct for using the user written program -xtscc-.
I would use this program to provide estimates for my Hausman test, but the program only works with fixed effects, not random effects.
My problem is that, as far as I am aware, the Hausman test is only valid under homoskedasticity, and thus invalid in my case.
However, when I try correcting for this by adding -, robust- at the end of my -xtreg- regression, Stata is unable to compute the Hausman test.
The exact error comes out as "hausman cannot be used with vce(robust), vce(cluster cvar), or p-weighted data".
Do anyone have a solution for this?
As I have GDP as an explanatory variable, I am aware that the fixed effects model is probably the best choice from a theoretical standpoint.
This is just to cover all my bases for my bachelor's thesis.
Also, a side question: Does anyone know of another (better) way to correct for serial correlation and heteroskedasticity at the same time, than the -xtscc- program?
Any comments will be greatly appreciated,
Mathias
Related Posts with Choosing between fixed effects vs. random effects in the presence of heteroskedasticity
Variable transormation and change in coefficientsDear Stata members Let us say that my dependent variable is Net credit, derived as a difference betw…
Returned listConsider this simple example: Code: . return list scalars: r(changed) = 1 …
Reshape from wide to long with multiple variablesHello everyone, Just trying to puzzle out how to reshape my dataset from wide format to long, but w…
Difference in Difference Model - Binary outcome variable- Panel dataHi, I am trying to do a diff in diff model for the panel dataset. My outcome variable (y) is binary…
Graph STATA RR 95% CI with different colors and space between barsHello everybody, I am really struggling to create a graph in STATA that looks like the attached one…
Subscribe to:
Post Comments (Atom)
0 Response to Choosing between fixed effects vs. random effects in the presence of heteroskedasticity
Post a Comment