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"
serial autocorrelation in panel dataHi STATA community I have a panel data for period 2012-2020, with #obs 1988 and #groups 223, I run …
Stata for LinuxHi all Is the Stata software available for Linux supercomputers or not? if yes how much faster and …
generate event timeDear All, Suppose that I have daily trading data for many years. (A sample of two-year data is "here…
Instrument for Industry Concentration that is uncorrelated with priceI have been trying to identify a good instrument for industry concentration that is uncorrelated wit…
occures error 111 during decomp for heckman reg.Hi All, Kindly help me to solve this problem. I am trying to run decomposition using decomp for the…
Subscribe to:
Post Comments (Atom)
0 Response to Using xtreg, error "Panels are not nested in clusters"
Post a Comment