楼主: 长中big渣
2123 0

求助,MPLUS出现error,between和within的label不规范 [推广有奖]

  • 1关注
  • 3粉丝

已卖:310份资源

讲师

16%

还不是VIP/贵宾

-

威望
0
论坛币
15006 个
通用积分
213.5874
学术水平
9 点
热心指数
10 点
信用等级
7 点
经验
15687 点
帖子
150
精华
0
在线时间
641 小时
注册时间
2017-9-19
最后登录
2025-11-27

楼主
长中big渣 学生认证  发表于 2017-12-12 19:40:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
程序如下:
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

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Between within Mplus Error label Mplus mplus初学者

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-3 14:38