Hello,
I am analysing a dataset to understand the relationship of a variable ind on the outcome y, which may include clustering at state-level. I am confused about the difference between using xtreg re and xtreg re vce(cluster state). When I only use xtreg re (see below) the SEs are smaller than the adjusted OLS with cluster-robust SEs using vce(cluster state), which I understand should be the opposite? here's my code:
regress y ind smoke i.edu i.inc sex years, vce(cluster state)
xtset state
xtreg y ind smoke i.edu i.inc sex years
Should I be including vce(cluster state) again after my xtreg?
NOTE this is not panel data, it is cross-sectional.
Thank you,
Hania
I am analysing a dataset to understand the relationship of a variable ind on the outcome y, which may include clustering at state-level. I am confused about the difference between using xtreg re and xtreg re vce(cluster state). When I only use xtreg re (see below) the SEs are smaller than the adjusted OLS with cluster-robust SEs using vce(cluster state), which I understand should be the opposite? here's my code:
regress y ind smoke i.edu i.inc sex years, vce(cluster state)
xtset state
xtreg y ind smoke i.edu i.inc sex years
Should I be including vce(cluster state) again after my xtreg?
NOTE this is not panel data, it is cross-sectional.
Thank you,
Hania
Comment