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
looking for a code to convert date (08jan2008) to weeksHello Everyone, I am looking to convert date to weeks variable is daterec and the range is from (08…
Math eqtesting [ 0 <= a + bX_{it-1} <= 100 \] \[ 0 <= a + bX_{it-1} <= 100 \] …
Handling missing values at once?Hello, I was wondering is there any code to put all of my missing value of -1 to 0 at once. I have…
Save specific output from multiple regressionsDear all, I am new to Stata and apologies if I post something in a wrong way. I want to run many A…
ppmlhdfe Pseudo R2Hi, I am using the regressor: ppmlhdfe It shows me the Pseudo R2. How could I calculate the R2? T…
Subscribe to:
Post Comments (Atom)
0 Response to Choosing between fixed effects vs. random effects in the presence of heteroskedasticity
Post a Comment