I would like to run a panel regression for a subset of the time period of my dataset and then check out of sample prediction. I was hoping to compare the predicted values against the observed value of another subset of my data.
Code:
webuse nlswork, clear xtset idcode year xtreg ln_wage i.year i.union c.tenure##c.tenure c.age##c.age if year < 79, fe
Sincerely,
Chiara
0 Response to Out of sample prediction with the RMSE - panel data
Post a Comment