Stata Panel Data -

Already achieved with i.year in the FE model.

xtreg wage hours tenure age, fe
estimates store fe
xtreg wage hours tenure age, re
estimates store re
hausman fe re

If p < 0.05 → FE preferred.

Important for macro or spatial panels.

xtcd wage hours tenure

(Install: ssc install xtcd)