TITLE:
  Eq 10a.1: Random Linear Model using Years since Birth

DATA:
  ! Prior necessary data manipulation conducted using other programs
  FILE = MPLUS_Chapter10a.csv;
  FORMAT = FREE;

VARIABLE:
  NAMES = PersonID occasion ageT0 tvage ytdT0 tvytd recall time
          roundage tvage84 ageT084 roundytd tvytd7 ytdT07;
  USEVARIABLES = recall tvage84;
  MISSING = ALL (-9999);
  CLUSTER = PersonID;
  WITHIN = tvage84;

ANALYSIS:
  ESTIMATOR = ML;
  PROCESSORS = 4;
  TYPE = TWOLEVEL RANDOM;

MODEL:

%WITHIN%
  recall;
  linear | recall ON tvage84;

%BETWEEN%
  [recall linear] (int btvage84);
  recall linear;
  recall WITH linear;