TITLE:
Ch 6: 2a: Fixed Linear Time, Random Intercept Model
DATA:
FILE = MPLUS_Chapter6.csv;
FORMAT = FREE;
DEFINE:
rt = rt/10;
time1 = session - 1;
VARIABLE:
NAMES = PersonID session rt;
USEVARIABLES = rt time1;
MISSING = ALL (-9999);
CLUSTER = PersonID;
WITHIN = time1;
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
TYPE = TWOLEVEL RANDOM;
MODEL:
%WITHIN%
rt;
linear | rt ON time1;
%BETWEEN%
[rt linear] (int btime1);
rt linear@0;
MODEL CONSTRAINT:
NEW(est1-est6);
est1 = int*1 + btime1*0;
est2 = int*1 + btime1*1;
est3 = int*1 + btime1*2;
est4 = int*1 + btime1*3;
est5 = int*1 + btime1*4;
est6 = int*1 + btime1*5;