use http://www.stata-press.com/data/r16/nlswork.dta,clear
replace union = 0 if mi(union)
xtset idcode year
drop if mi(ln_wage, union, msp, tenure, year)
panelview ln_wage union , type( outcome ) i( idcode ) t( year ) mycolor(Reds) discrete
1
2
bys idcode (year):gen serial = _n
1
2
3
4
eststo FE: xtreg ln_wage union msp tenure year, cluster(idcode) fe
eststo AREG: areg ln_wage union msp tenure year, absorb(idcode) vce(cluster idcode)
eststo TDFE: