TITLE:
Ch 4: Saturated Means, Unstructured R-Only Model
Test for mean differences across days
DATA:
FILE = MPLUS_Chapter4.csv;
FORMAT = FREE;
DATA LONGTOWIDE:
LONG = posmood;
WIDE = posmood1-posmood7;
IDVARIABLE = PersonID;
REPETITION = studyday (1-7);
VARIABLE:
NAMES = PersonID studyday posmood;
USEVARIABLES = posmood1-posmood7;
MISSING = ALL (-9999);
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
OUTPUT:
STDYX;
MODEL:
posmood1-posmood7 (totvar1-totvar7);
posmood1-posmood7 WITH posmood1-posmood7 (totcov1-totcov21);
[posmood1-posmood7] (mean1-mean7);
MODEL TEST:
0=mean7-mean1;
0=mean7-mean2;
0=mean7-mean3;
0=mean7-mean4;
0=mean7-mean5;
0=mean7-mean6;