TITLE:
Ch 10a: Saturated Means by Rounded Years to Death, Random Intercept Model for Prose Recall
DATA:
FILE = MPLUS_Chapter10a.csv;
FORMAT = FREE;
DATA LONGTOWIDE:
LONG = recall;
WIDE = recall0-recall15;
IDVARIABLE = PersonID;
REPETITION = roundytd (0-15);
DEFINE:
roundytd = -1*roundytd;
VARIABLE:
NAMES = PersonID occasion ageT0 tvage ytdT0 tvytd recall time
roundage tvage84 ageT084 roundytd tvytd7 ytdT07;
USEVARIABLES = recall0-recall15;
MISSING = ALL (-9999);
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
OUTPUT:
STDYX;
MODEL:
recall0-recall15 (totvar);
recall0-recall15 WITH recall0-recall15 (totcov);
[recall0-recall15] (mean0-mean15);