想研究一个2-2-1的跨层次分析。具体模型如图所示
现在mplus代码如下:
 TITLE: two-level type mome ethical leadership model,
        x w m are level 2, Y is level 1,
       Y has between-group variance;
  DATA:FILE is "c:\users\asus\desktop\1.dat";
  define:int=x*w;
         !center=grandmean(x w);
  VARIABLE: NAMES =x w m y Group;
           usevariables are x wm y int;
           cluster=Group;
           between=x w m int;
           within=y;
  analysis: type=twolevel;
  MODEL:%within%
        y on m;
        %between%
        m on x w int(a);
        perf on m (bb)
        x w int;
  model constraint: new(ind);
                    ind= a * bb;
  output: sampstat;
          cinterval;
结果出错:*** 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)
      ETHICALL   1
      SETHICAL   1
      ECCARING   1
      INT        1
现在我的数据已经group分好组,每个小组3个人。不知道问题出在哪里?
求助大神帮忙解答!可以帮你用论坛币下点东西~