Dear all,
Hi, I want to run a fixed effects regression over (unbalanced) panel data, where
1) fixed effects for every individual i;
2) standard errors clustered by industry and month.
I tried running,
egen group = group(industry month)
xtreg y x1 x2 x3, fe id(id) vce(cluster group)
OR
xtreg y x1 x2 x3, fe id(id) vce(cluster industry month)
I keep getting "panels are not nested within clusters" I'd desperately appreciate your help in overcoming this difficulty. Thank you very much in advance!
Best,
John
Hi, I want to run a fixed effects regression over (unbalanced) panel data, where
1) fixed effects for every individual i;
2) standard errors clustered by industry and month.
I tried running,
egen group = group(industry month)
xtreg y x1 x2 x3, fe id(id) vce(cluster group)
OR
xtreg y x1 x2 x3, fe id(id) vce(cluster industry month)
I keep getting "panels are not nested within clusters" I'd desperately appreciate your help in overcoming this difficulty. Thank you very much in advance!
Best,
John
Comment