Dear Statalist,
I tried finding a reply to my problem on your site but so far I did not quite find something appropriate. Also, I am new to Statalist and Stata so please be patient with me.
My data (10 years, 12 countries) is heteroscedastic but not serially / cross-sectionally correlated. Thus, when running my random and fixed effects models I want to correct for heteroscedasticity only. I then plan to compare the fixed with a random effects model using a Hausman test (with xtoverid) where both models have been previously corrected for heteroscedasticity.
I read in other Statalist entries that correcting for heteroscedasticity is generally possible when using xtreg with the robust option. However, when used with xtreg the robust option conducts clustering and thus corrects not only for heteroscedasticity. But I am doubtful that clustering is correct for such a small panel as mine where Stata calculates 12 clusters (one for each country). Would this approach in my case nevertheless be valid?
As an alternative I considered the areg command with the robust option. Here it seems that Stata does not cluster but only corrects for heteroscedasticity. However, with areg I did not find a random effects version so that I cannot compare both models in the first place.
Thank you very much for your ideas and input!
All the best,
Leon
I tried finding a reply to my problem on your site but so far I did not quite find something appropriate. Also, I am new to Statalist and Stata so please be patient with me.
My data (10 years, 12 countries) is heteroscedastic but not serially / cross-sectionally correlated. Thus, when running my random and fixed effects models I want to correct for heteroscedasticity only. I then plan to compare the fixed with a random effects model using a Hausman test (with xtoverid) where both models have been previously corrected for heteroscedasticity.
I read in other Statalist entries that correcting for heteroscedasticity is generally possible when using xtreg with the robust option. However, when used with xtreg the robust option conducts clustering and thus corrects not only for heteroscedasticity. But I am doubtful that clustering is correct for such a small panel as mine where Stata calculates 12 clusters (one for each country). Would this approach in my case nevertheless be valid?
As an alternative I considered the areg command with the robust option. Here it seems that Stata does not cluster but only corrects for heteroscedasticity. However, with areg I did not find a random effects version so that I cannot compare both models in the first place.
Thank you very much for your ideas and input!
All the best,
Leon
Comment