TITLE:
  Ch 10a: Saturated Means by Rounded Years in Study, Random Intercept Model for Prose Recall

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

DATA LONGTOWIDE:
  LONG = recall;
  WIDE = recall0 recall2 recall4 recall6 recall8;
  IDVARIABLE = PersonID;
  REPETITION = occasion (0 2 4 6 8);

VARIABLE:
  NAMES = PersonID occasion ageT0 tvage ytdT0 tvytd recall time
          roundage tvage84 ageT084 roundytd tvytd7 ytdT07;
  USEVARIABLES = recall0 recall2 recall4 recall6 recall8;
  MISSING = ALL (-9999);

ANALYSIS:
  ESTIMATOR = ML;
  PROCESSORS = 4;

OUTPUT:
  STDYX;

MODEL:
  recall0 recall2 recall4 recall6 recall8 (totvar);
  recall0 WITH recall2 recall4 recall6 recall8 (totcov);
  recall2 WITH recall4 recall6 recall8 (totcov);
  recall4 WITH recall6 recall8 (totcov);
  recall6 WITH recall8 (totcov);
  [recall0 recall2 recall4 recall6 recall8] (mean0 mean2 mean4 mean6 mean8);