Dear community,
in my dataset, the last year (2020) is missing. Therefore, I want to forecast the value of my variable "human capital" for this year. I want to to this with a fixed effects regression with a country-specific time trend and use the estimation results to predict the value of the dependent variable (human capital) for each country for the year 2020. The data used for the regression is until 2019.
My panel id is country_enc and the time variable is year.
I wanted to do:
however this produces the warning "the panel variable country_enc may not be included as an independent variable". I am however unsure how to change the estimation command appropriately and I'm also not sure about the correct command to predict the values for 2020.
Does someone have an advice?
Best wishes
Noemi
in my dataset, the last year (2020) is missing. Therefore, I want to forecast the value of my variable "human capital" for this year. I want to to this with a fixed effects regression with a country-specific time trend and use the estimation results to predict the value of the dependent variable (human capital) for each country for the year 2020. The data used for the regression is until 2019.
My panel id is country_enc and the time variable is year.
I wanted to do:
Code:
xtreg hc year##c.country_enc, fe
Does someone have an advice?
Best wishes
Noemi
Comment