Dear all,

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
I am unsure how to proceed due to the fixed effects. Any help will be highly appreciated.

Sincerely,

Chiara