Hi,
I would like to include a year-specific month fixed effects, and I have variables for year and month. What is the best way to do it?
I was thinking to generate a variable, based on the following code,
And then run the model
Does it look okay?
Many thanks.
Nikos
I would like to include a year-specific month fixed effects, and I have variables for year and month. What is the best way to do it?
I was thinking to generate a variable, based on the following code,
Code:
egen month_year_fe=group(month year)
Code:
regress y X i.month_year_fe i.month i.year
Many thanks.
Nikos
Comment