Hi all,
I am working with a panel dataset where the panel variable is woman and the time variable is year. I would like to run a regression with both province and year fixed effects (but not woman FE!). I am clustering standard errors at the province level, accordingly:
xtreg birth_male i.gender age i.province i.year if no_child==0, vce(cluster province)
birth_male is a binary variable while gender, the regressor of interest has four categories.
Now, given that I would like to run this regression with survey weights which are not supported by xtreg, I tried to run the command below. My aim was to check whether the outputs of the two regressions are identical, as expected.
reg birth_male i.gender age i.province i.year if no_child==0, vce(cluster province)
surprisingly, this is not the case and I am not getting why. Probably the issue is that the second command ignores the panel structure of the data. How can I solve this problem?
Any clue?
Many thanks!
I am working with a panel dataset where the panel variable is woman and the time variable is year. I would like to run a regression with both province and year fixed effects (but not woman FE!). I am clustering standard errors at the province level, accordingly:
xtreg birth_male i.gender age i.province i.year if no_child==0, vce(cluster province)
birth_male is a binary variable while gender, the regressor of interest has four categories.
Now, given that I would like to run this regression with survey weights which are not supported by xtreg, I tried to run the command below. My aim was to check whether the outputs of the two regressions are identical, as expected.
reg birth_male i.gender age i.province i.year if no_child==0, vce(cluster province)
surprisingly, this is not the case and I am not getting why. Probably the issue is that the second command ignores the panel structure of the data. How can I solve this problem?
Any clue?
Many thanks!
Comment