TITLE:
Ch 11a: Test if Level-3 Random Time Slope Variance is still needed
Predicting Student Closeness
DATA:
FILE = MPLUS_Chapter11a.csv;
FORMAT = FREE;
VARIABLE:
NAMES = ClassID grade size StudID girl SMclose SMvic CMclose CMvic CMg CMemo
size23 grade35 CMg50 CMemo5 CMvic3 WCclose SMvic3 WCvic wave emo vic close
time1 time2 w3 WSclose vic3 WSvic emo5 WCemo;
USEVARIABLES = close time1 size23 girl CMg50;
MISSING = ALL (-9999);
CLUSTER = ClassID StudID;
WITHIN = time1;
BETWEEN = (StudID) girl (ClassID) size23 CMg50;
ANALYSIS:
ESTIMATOR = ML;
PROCESSORS = 4;
TYPE = THREELEVEL RANDOM;
MODEL:
%WITHIN%
close;
lin | close ON time1;
%BETWEEN StudID%
close lin;
close WITH lin;
close lin ON girl (bintL2g blinL2g);
%BETWEEN ClassID%
[close lin] (int btime1);
close lin@0;
close lin ON size23 (bintsize blinsize);
close lin ON CMg50 (bintL3g blinL3g);