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"
Parameter constraints for MLE modelDear forum guests! I need to introduce a range constraint for the sum on parameters in MLE model. T…
esttab, eststo and appendmodelsDear all, I am tabulating different dependent variables in consecutive rows (not consecutive columns…
Looking for alternatives to outreg2Dear Statalist, I am trying to do some descriptives and to export the table to a word document. I u…
Frequency table for multiple variablesDear all, As a fairly new user of Stata, I would appreciate any suggestions to create a frequency t…
Writing paragraphs using putdocx textHi I'm trying to use putdocx to automate a report. When writing long paragraphs, it seems I can't g…
Subscribe to:
Post Comments (Atom)
0 Response to Using xtreg, error "Panels are not nested in clusters"
Post a Comment