title:
Introducing Multilevel Modeling by Kreft and de Leeuw.
Page 93, Table 4.21
data:
file = imm23.dat ;
variable:
names = schid stuid ses meanses homework white parented public
ratio percmin math sex race sctype cstr scsize urban region;
cluster = schid;
usevar = math ses percmin;
within = ses; ! level 1 variables here
between = percmin; ! level 2 variables here
analysis:
type = twolevel random;
estimator = ml;
model:
%within%
math on ses; ! fixed effect of ses ;
%between%
math on percmin; ! intercept predicted from percmin