INPUT INSTRUCTIONS
TITLE: 1-1-1(随机截距)(MSEM)
DATA: FILE IS 1-1-1.dat;
VARIABLE: NAMES ARE
ID y m x;
USEVARIABLES ARE
ID y m x;
CLUSTER IS ID;
ANALYSIS:
TYPE IS TWOLEVEL RANDOM;
MODEL:
%WITHIN%
sa | m ON x; ! regress m on x, call the random slope "sa"
sb | y ON m
sc |y ON x;
%BETWEEN%
sa sb sc x m y; ! estimate Level-2 (residual) variances for sa, sb, sc, x, m, and y
sa WITH sb(cab); ! estimate Level-2 (residual) variances for sa, sb, sc, x, m, and y
sb WITH sc x m y;
sc WITH x m y;
m ON x(ab); ! regress m on x, call the slope "ab"; ab = contextual effect, not the Between
y ON m(bb);
y ON x;
[sa](aw); ! estimate the mean of sa, call it "aw"
[sb](bw);
MODEL CONSTRAINT:! section for computing indirect effect
NEW(a b indb indw);
a=aw+ab; ! compute Between a path
b=bw+bb; ! compute Between a path
indw=aw*bw+cab; ! compute Between a path
indb=a*b; ! compute Between a path
OUTPUT:
TECH1 TECH8 CINTERVAL;
*** ERROR in MODEL command
Undefined keyword | for random effect definition.
*** ERROR in MODEL command
Undefined keyword | for random effect definition.
这个错误看不懂啊,有没有大神知道这是怎么回事儿?