程序如下:
Mplus VERSION 7.4
MUTHEN & MUTHEN
12/12/2017 7:19 PM
INPUT INSTRUCTIONS
TITLE:
Intercept-only model.
DATA:
FILE IS C:\Users\长中big渣\Desktop\数据数据\1212.txt;
VARIABLE:
NAMES = id gender age edu marri poli Gtype
Gsize Jage Gage time1 time2 Gpost Upost
act b c1-c5 d1-d2 d5-d7 e1-e3 e4-e7 f1-f4;
Missing are all(-9999);
USEVARIABLE = id gender age edu marri poli Gtype
Gsize Jage Gage time1 time2 Gpost Upost act c1-c5 d1-d2 d5-d7 e1-e3 e4-e7 f1-f4 act1;
!act hap sat inc exh hea con x;
BETWEEN= act;
CLUSTER = id;
ANALYSIS:
TYPE IS TWOLEVEL RANDOM;
DEFINE:
gender=gender;
age=age;
edu=edu;
marri=marri;
poli=poli;
Gtype=Gtype;
Gsize=Gsize;
Jage=Jage;
Gage=Gage;
time1=time1;
time2=time2;
Gpost=Gpost;
Upost=Upost;
!center act (grandmean);
act1=CLUSTER_MEAN(act);
MODEL:
!act BY a5-a12;
hap BY c1-c5;
sat BY d1-d2;
exh BY e1-e3;
hea BY e4-e7;
con BY f1-f4;
inc BY d5-d7;
%WITHIN%
hap ON exh(bw1);
hap ON con(bw2);
sat ON exh(bw3);
sat ON con(bw4);
hea ON exh(bw5);
hea ON con(bw6);
%BETWEEN%
exh ON act1(a1) gender age edu marri poli Gtype inc
Gsize Jage Gage time1 time2 Gpost Upost;
con ON act1(a2) gender age edu marri poli Gtype inc
Gsize Jage Gage time1 time2 Gpost Upost;
hap ON exh(bb1) con(bb2) act1 gender age edu marri poli Gtype inc
Gsize Jage Gage time1 time2 Gpost Upost;
sat ON exh(bb3) con(bb4) act1 gender age edu marri poli Gtype inc
Gsize Jage Gage time1 time2 Gpost Upost;
hea ON exh(bb5) con(bb6) act1 gender age edu marri poli Gtype inc
Gsize Jage Gage time1 time2 Gpost Upost;
MODEL:constraint:
new(ind1 ind2 ind3 ind4 ind5 ind6);
ind1=a1*bb1;
ind2=a1*bb3;
ind3=a1*bb5;
ind4=a2*bb2;
ind5=a2*bb4;
ind6=a2*bb6;
OUTPUT: SAMPSTAT CINTERVAL;
*** ERROR in MODEL command
The labels %BETWEEN% or %WITHIN% must be specified.
MUTHEN & MUTHEN
3463 Stoner Ave.
Los Angeles, CA 90066
Tel: (310) 391-9971
Fax: (310) 391-8971
Web: www.StatModel.com
Support:
Support@StatModel.com
Copyright (c) 1998-2015 Muthen & Muthen