TITLE:
Ch 5: Saturated Means, Unstructured Variance Model
ANSWER KEY for both sides of the model
DATA:
FILE = MPLUS_Chapter5.csv;
FORMAT = FREE;
DATA LONGTOWIDE:
LONG = outcome;
WIDE = outcome1-outcome4;
IDVARIABLE = PersonID;
REPETITION = wave (1-4);
DEFINE:
time = wave - 1;
VARIABLE:
NAMES = PersonID wave outcome;
USEVARIABLES = outcome1-outcome4;
MISSING = ALL (-9999);
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
OUTPUT:
STDYX;
MODEL:
outcome1-outcome4 (totvar1-totvar4);
outcome1-outcome4 WITH outcome1-outcome4 (totcov1-totcov6);
[outcome1-outcome4] (mean1-mean4);
MODEL TEST:
0=mean4-mean1;
0=mean4-mean2;
0=mean4-mean3;