TITLE:
  Ch 10b: Empty Means, Two-Level Model for the Variance for Symptoms
  Sessions Within Burst*Persons

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

VARIABLE:
  NAMES = PersonID burst session symptoms posaff slope12 slope26 burst1 b1or2;
  USEVARIABLES = symptoms;
  MISSING = ALL (-9999);
  CLUSTER = PersonID burst;

ANALYSIS:
  ESTIMATOR = ML;
  PROCESSORS = 4;
  TYPE = THREELEVEL RANDOM;

MODEL:

%WITHIN%
  symptoms;

%BETWEEN burst%
  symptoms;

%BETWEEN PersonID%
  [symptoms];
  symptoms@0;