TITLE:
Eq 10a.4: Fixed Quadratic, Random Linear Model using Years in Study
Controlling for Birth Cohort and Death Cohort
DATA:
FILE = MPLUS_Chapter10a.csv;
FORMAT = FREE;
DEFINE:
timesq = time*time;
ageT0sq = ageT084*ageT084;
ytdT0sq = ytdT07*ytdT07;
VARIABLE:
NAMES = PersonID occasion ageT0 tvage ytdT0 tvytd recall time
roundage tvage84 ageT084 roundytd tvytd7 ytdT07;
USEVARIABLES = recall time ageT084 ytdT07 timesq ageT0sq ytdT0sq;
MISSING = ALL (-9999);
CLUSTER = PersonID;
WITHIN = time timesq;
BETWEEN = ageT084 ytdT07 ageT0sq ytdT0sq;
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
TYPE = TWOLEVEL RANDOM;
MODEL:
%WITHIN%
recall;
linear | recall ON time;
quad | recall ON timesq;
%BETWEEN%
[recall linear quad] (int btime btimesq);
recall linear quad@0;
recall WITH linear;
recall ON ageT084 ageT0sq ytdT07 ytdT0sq (baint basqint bdint bdsqint);
linear ON ageT084 ytdT07 (balin bdlin);