TITLE:
  Ch 4: Empty Means, Unstructured R-Only Model
  Best-fitting and least parsimonious baseline

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] (mean);