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"
Rearranging individual dates within a varlistHi, I'm extremely new to Stata (5 weeks) and am stuck with something my lecturer has asked us to do.…
Request syntax assistance with v17 [table] command to get table of frequency in descending frequency orderI apologize for even asking, assuming there is something very simple I simply cannot find. As [tabl…
Making not to show the each results in the tableHello, Thank you so much for your help in advance. I see my result of table as below, but to put it…
Unlimited loop of events tested when using eventstudy2Hello! I am currently conducting my final thesis and for that I am using the package eventstudy2, a…
Statistical hypotheses test for independent count data and dependent continous variablesDear Stata Community, I am looking for the right statistical model to test hypotheses with the foll…
Subscribe to:
Post Comments (Atom)
0 Response to Using xtreg, error "Panels are not nested in clusters"
Post a Comment