首先声明我对这一块问题的研究方法还处于摸索当中,不是很熟悉。不过似乎很多人都是用MPLUS来做的。以下是一些程序(其中有部分是用来检验多水平中介效应的;程序运行时所需要的数据我不知道怎么贴,你如果需要的话,可以给我写信:
shenym1980@126.com):
例子1:
TITLE: Group Example with TYPE=Twolevel
DATA:
File is 'Chap9_grpexam.txt';
VARIABLE:
Names are obs x m y i j;
Usevariables are x m y;
Cluster is j;
Between = x;
Within = m;
Centering = Grandmean(m);
ANALYSIS:
Type is Twolevel Random;
Estimator is MLR;
Iterations = 1000;
Convergence = 0.00005;
MODEL:
%Within%
y on m;
%Between%
y on x;
OUTPUT:
例子2:
TITLE: Chapter 9 Group Example Using the Kenny (2003) Data
DATA:
File is 'Chap9_Kenny.dat';
VARIABLE:
Names are subjid meas x m y constant;
Usevariables are x m y;
Cluster is subjid;
Within = x;
ANALYSIS:
Type is Twolevel Random;
Algorithm = Integration;
Ghfiml = On;
MODEL:
%Within%
cprime | y on x;
a | m on x;
b | y on m;
%Between%
a with b;
OUTPUT:
sampstat tech1 tech3 tech8;
本文来自: 人大经济论坛 LISREL、AMOS等结构方程模型分析软件 版,详细出处参考:
http://www.pinggu.org/bbs/viewthread.php?tid=903610&page=1&from^^uid=326348 1# 爱萌