TITLE:
Eq 10a.1: Fixed Quadratic, Random Linear Model using Years to Death
DATA:
FILE = MPLUS_Chapter10a.csv;
FORMAT = FREE;
DEFINE:
tvytdsq = tvytd7*tvytd7;
VARIABLE:
NAMES = PersonID occasion ageT0 tvage ytdT0 tvytd recall time
roundage tvage84 ageT084 roundytd tvytd7 ytdT07;
USEVARIABLES = recall tvytd7 tvytdsq;
MISSING = ALL (-9999);
CLUSTER = PersonID;
WITHIN = tvytd7 tvytdsq;
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
TYPE = TWOLEVEL RANDOM;
MODEL:
%WITHIN%
recall;
linear | recall ON tvytd7;
quad | recall ON tvytdsq;
%BETWEEN%
[recall linear quad] (int btvytd7 btvytdsq);
recall linear quad@0;
recall WITH linear;