Dear users,
I would like to find out how shocks affect household consumption. I have a balanced panel of about 1,500 households for two periods.
I try to implement a fixed effects model with household fixed effects. I suspect that outcomes of households are correlated in villages (richer/poorer neighbourhoods), especially since I am using rainfall shocks which I expect to be correlated in villages since extreme will affect the whole village and not just some households.
Therefore, I did:
xtset hhid (household id) wave (survey wave/year)
xi: i.wave*i.village
xtreg log_consumption x1 x2 (household characteristics) _I*, fe vce(cluster village)
Stata tells me that panels are not nested within clusters which is indeed the case since I identified about 90 households that moved between the two periods. Since my dataset is already very small, is there any other chance to cluster errors at village-level without excluding those 90 households?
Thank you in advance for your comments!
Best, Anne
Related Posts with Using xtreg, error "Panels are not nested in clusters"
Blog entry on quickly setting up Python with Stata 16Here is my first blog entry on how to quickly set up Python with Stata 16 https://fintechprofessor.c…
Combining local macros in StataI am trying to create a loop that copies specific files (which have a specific identifier at the end…
Ereturn Scalar on MI Estimate?Hi All, I currently am trying to perform a bootstrap on mi estimate: logistic. However, when I run …
Mixed-effects logistic regression for panel dataHello, I am using mixed-effects logistic regression for panel data in STATA 15, and I was wondering …
Can Stata 16 frames be appended?Fellow Statalsters (especially StataCorp) Many thanks to StataCorp for Stata 16. The frames are a s…
Subscribe to:
Post Comments (Atom)
0 Response to Using xtreg, error "Panels are not nested in clusters"
Post a Comment