全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 HLM专版
2286 2
2014-01-09
I am attempting to conduct a complex twolevel random analysis in Mplus. There are two cluster variables: TID (class) and TUTORG (tutor group). We're examining the effects of two active tutoring treatments (TRT) on performance (ponavgline). We also are controlling for pretesting on performance (pravgline). I am interested in examining the random effects of tutoring clusters. Does anyone know how to estimate two level random effects model using M-Plus?
二维码

扫码加我 拉你入群

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

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

全部回复
2014-1-9 12:09:12
DEFINE: CENTER prnavgline (GRANDMEAN); VARIABLE:
    NAMES ARE STID TID TUTORG TRT prnavgline ponavgline PRcalc POcalc prnptot ponptot
    activetx;
USEVARIABLES ARE TID TUTORG  prnavgline ponavgline;

    USEOBSERVATIONS ARE activetx eq 1;
    WITHIN = prnavgline;
    cluster = TID TUTORG;
    missing are blank;


    ANALYSIS:
      TYPE = COMPLEX TWOLEVEL RANDOM;
      MODEL:
     %WITHIN%
    s1 | ponavgline ON prnavgline;
    %BETWEEN%
    ponavgline s1;
    ponavgline with s1;
二维码

扫码加我 拉你入群

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

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

2014-1-9 12:11:24
Hello,
Concerning the model below, I've determined that the random effects due to the TUTORG group are negligable.  I am therefore interested in running a TWOLEVEL analysis (no longer including the COMPLEX specification e and no longer accounting for the TUTORG clusters). I also removed the random slope of pre-performance predicting postperformance, and thus the need for the RANDOM specification.  Treatments 1 and 2 are included as dummy variables relative to a control group. However, when I attempt to specify the model, I obtain the error noted below.  Does anyone have experience with this error?  Is there a way to run the model ignoring the TUTORG cluster?
ERROR:
One or more between-level variables have variation within a cluster for   one or more clusters.  Check your data and format statement.

     Between    Cluster ID with variation in this variable
     Variable     (only one cluster ID will be listed)

      TRT_1      56
      TRT_2      48


Here is the model:


DEFINE: CENTER PRcalc(GRANDMEAN);
VARIABLE:
NAMES ARE STID TID TUTORG TRT prnl02avgdif ponl02avgdif PRcalc POcalc prnptot ponptot
  trt_1 trt_2 control trt1vs2 activetx;

USEVARIABLES ARE TID trt_1 trt_2 PRcalc POcalc;
WITHIN = PRcalc;
BETWEEN = trt_1 trt_2;
cluster = TID;
missing are blank;

ANALYSIS:
TYPE = TWOLEVEL;

      MODEL:
     %WITHIN%
  POcalc ON PRcalc ;
    %BETWEEN%
  POcalc;
  POcalc ON trt_1;
  POcalc ON trt_2;
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群