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"
Twoway graphs: yaxis only on the right-hand side (like in The Economist)Dear Forum, I wonder how to create graphs that have the yaxis only on the right-hand side, like man…
how to merge the spatial data when there is no common variables in two dataset?Hi all, My data contains households’ GPS info (latitude, longitude, and altitude) and don’t have da…
estate binary indicatorsHello, I am exporting results with a binary variable as the main IV, and the output shows "var=1" a…
Need Help with Stata AssignmentHi, Not sure if I can use this forum to get academic help so if this isn't right please delete my po…
Creating dummy variable equal to one if current mean is one standard deviation above/below the historical meanHello everybody, I am trying to create a dummy variable that is equal to one of current rainfall in…
Subscribe to:
Post Comments (Atom)
0 Response to Using xtreg, error "Panels are not nested in clusters"
Post a Comment