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
4:1 matching for case control studies.Which code would work to generate Range match in AGE + Exact match in some cateogrical variables e.g…
Graph with suppressed yaxis, but with a ytitleHi everyone, I've searched through the forum for an answer to this specific question and couldn't f…
Why are marginal effects of instrumental variables statistically significant in ivprobit analysis?Hi, I am running an ivprobit model and have encountered an issue with the margin command in computin…
Missing parentheses around se in output whilst either coefficient or se multiplied by 100 ?! using reg/est store/estoutHello, there is a problem occuring with exported regression results. 1) I have a full regression ou…
Query on storing strings using st_sstore()Colleagues: My objective is to store a string-valued variable in Stata using some Mata code. One of …
Subscribe to:
Post Comments (Atom)
0 Response to Choosing between fixed effects vs. random effects in the presence of heteroskedasticity
Post a Comment