Hello,
I am working with a panel dataset that has 3 rounds. I am confused as to how do I incorporate multiple fixed effects into the model, what would be the command. For example: I want to assess the impact of a particular shock X at the household level on children's health Y. So the equation would mainly look like this:
Yihvt= b0+b1Xhvt+ ah+av+at+ error
here Yihvt is the measure of child health for child i in household h, village v and year t. ah is household fixed effects, av is village fixed effects and at is year fixed effects. I have created a unique id for child by grouping household id and member id. Then I declared the panel in the following way
xtset child_id year
I want to know what would be the command to estimate the above equation? how do I incorporate household fixed effects, village fixed effects and year fixed effects in the regression. I cannot create a dummy variable using household id as I have almost 5000 households, introducing this much regressors in the model seems a bad idea.
I am working with a panel dataset that has 3 rounds. I am confused as to how do I incorporate multiple fixed effects into the model, what would be the command. For example: I want to assess the impact of a particular shock X at the household level on children's health Y. So the equation would mainly look like this:
Yihvt= b0+b1Xhvt+ ah+av+at+ error
here Yihvt is the measure of child health for child i in household h, village v and year t. ah is household fixed effects, av is village fixed effects and at is year fixed effects. I have created a unique id for child by grouping household id and member id. Then I declared the panel in the following way
xtset child_id year
I want to know what would be the command to estimate the above equation? how do I incorporate household fixed effects, village fixed effects and year fixed effects in the regression. I cannot create a dummy variable using household id as I have almost 5000 households, introducing this much regressors in the model seems a bad idea.
Comment