Hi everyone,
so I have this example here that I would like to run. If I do the same with xtreg it works perfectly fine. Why is that? Can anyone explain?
. xtset idpers year
panel variable: idpers (strongly balanced)
time variable: year, 1999 to 2014
delta: 1 unit
. xtologit influence i.active##c.votesyst swiss i.passive voted c.interest c.age c.income c.education c.stutzer##c.stutzer job* i.canton if insample==0 , vce(cluster canton)
panels are not nested within clusters
r(498);
So the unit of analysis are individuals and the time variable are years. Why can't I cluster over cantons? Individuals are nested in cantons as far as I understand. Can anyone help?
so I have this example here that I would like to run. If I do the same with xtreg it works perfectly fine. Why is that? Can anyone explain?
. xtset idpers year
panel variable: idpers (strongly balanced)
time variable: year, 1999 to 2014
delta: 1 unit
. xtologit influence i.active##c.votesyst swiss i.passive voted c.interest c.age c.income c.education c.stutzer##c.stutzer job* i.canton if insample==0 , vce(cluster canton)
panels are not nested within clusters
r(498);
So the unit of analysis are individuals and the time variable are years. Why can't I cluster over cantons? Individuals are nested in cantons as far as I understand. Can anyone help?
Comment