Hello!
I would appreciate an answer to this question.
If I use xtreg, and I order the panel data with xtset, how do I do so that I have fixed effects for two variables?
In my case:
xtset country_id year
xtreg (Y-variable) (X-variable) (X-variable), fe
In this case, I get fixed effects for the variable 'country_id'. But how do so that I have fixed effects for year, and then year+countries?
I got an error message when I typed 'xtset historical_date (my other time variable) year', saying that "repeated time variables aren't allowed in the panel".
Thank you.
I would appreciate an answer to this question.
If I use xtreg, and I order the panel data with xtset, how do I do so that I have fixed effects for two variables?
In my case:
xtset country_id year
xtreg (Y-variable) (X-variable) (X-variable), fe
In this case, I get fixed effects for the variable 'country_id'. But how do so that I have fixed effects for year, and then year+countries?
I got an error message when I typed 'xtset historical_date (my other time variable) year', saying that "repeated time variables aren't allowed in the panel".
Thank you.
Comment