Hello!
I have run the command xtivreg2 y x1 x2 (x3=z) i.year, fe endog(x3)
It appeared the following error "factor variables not allowed".
I have taken out the variable "i.year" and could get now the results. Nevertheless, I need the dummy variable for the year to control for year effects.
How can I overcome this situation?
Thank you!
I have run the command xtivreg2 y x1 x2 (x3=z) i.year, fe endog(x3)
It appeared the following error "factor variables not allowed".
I have taken out the variable "i.year" and could get now the results. Nevertheless, I need the dummy variable for the year to control for year effects.
How can I overcome this situation?
Thank you!
Comment