Hello Statalisters,
I am using repeated cross-sectional individual data where I set districts as the panel variable to look at a district-level policy change on individual outcomes. The sample size for all the surveys are massive but in two earlier waves of the cross-sectional surveys key info on education is missing for half the population. I also want to use population weights. However, I know svy commands do not work with xtreg. I feel like my estimates would be biased if I do not use population weights. I have psu information, could I use that as population weights with xtreg, if yes how do I do this?
This is what my regression looks like (I am using district and year-fixed effects)
Lori
I am using repeated cross-sectional individual data where I set districts as the panel variable to look at a district-level policy change on individual outcomes. The sample size for all the surveys are massive but in two earlier waves of the cross-sectional surveys key info on education is missing for half the population. I also want to use population weights. However, I know svy commands do not work with xtreg. I feel like my estimates would be biased if I do not use population weights. I have psu information, could I use that as population weights with xtreg, if yes how do I do this?
This is what my regression looks like (I am using district and year-fixed effects)
Code:
xtset districts local yvar "attendany complete enrol" xtreg `yvar' quartcyclepol age locality school_year religion hschool sexratio litrate popgr i.year, fe // quartcyclepol is the quartile change of policy coverage by districts over time
Comment