I believe I have found a major bug / error in how Stata runs regressions with fixed effects. The specific data I am using is confidential so I cannot share a sample of that but I will do my best to describe the situation as best as possible.
I have a panel dataset and I am trying to run the following regression:
xtreg y x1 x2 x3 i.year i.month
The year variable represents the year and the month variable represents the month of the year (so it goes from 1 to 12). The only thing I care about is the coefficient of x1.
The problem is that if I run the following regression:
xtreg y x1 x2 x3 i.month i.year
The coefficient of x1 changes. This does not make any sense to me and, as far as I know, this should not be happening. Does anyone have any feasible explanations as to what is going on? If not, how can I report this to Stata so that this problem may be fixed in future versions? For context, I am using Stata 17.
Thanks!
I have a panel dataset and I am trying to run the following regression:
xtreg y x1 x2 x3 i.year i.month
The year variable represents the year and the month variable represents the month of the year (so it goes from 1 to 12). The only thing I care about is the coefficient of x1.
The problem is that if I run the following regression:
xtreg y x1 x2 x3 i.month i.year
The coefficient of x1 changes. This does not make any sense to me and, as far as I know, this should not be happening. Does anyone have any feasible explanations as to what is going on? If not, how can I report this to Stata so that this problem may be fixed in future versions? For context, I am using Stata 17.
Thanks!
Comment