predict y_p if e(sample)I understand that predict by default calculates the linear prediction from the fitted model (xb).
corr y y_p if e(sample)
di r(rho)^2
sqom, full k(2)
egen sumcase = sum(_SQn) tab sumcase
import delimited sample.txt, delimiter(tab) clear encode cohort, gen(cohort_num) xtset cohort_num date