I am using Stata 13.0.
I would like to run a two-way fixed effect model using a strong balanced panel data set constructed from 111 firms with 6 years time period.
It seems like -xtreg- could help me to apply fixed effect for each firm, but how about the "year"? Should I just add the dummy variable of -i.year- (or just -year-?) in the model of xtreg y x1 x2 x3, fe?
Or is there other way to run the two-way fixed effect model?
Thank you.
I would like to run a two-way fixed effect model using a strong balanced panel data set constructed from 111 firms with 6 years time period.
It seems like -xtreg- could help me to apply fixed effect for each firm, but how about the "year"? Should I just add the dummy variable of -i.year- (or just -year-?) in the model of xtreg y x1 x2 x3, fe?
Or is there other way to run the two-way fixed effect model?
Thank you.
Comment