楼主: wljlxq
2684 11

[程序分享] 急求:求多层线性模型的SAS程序 [推广有奖]

  • 0关注
  • 0粉丝

初中生

14%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
51 点
帖子
8
精华
0
在线时间
16 小时
注册时间
2013-1-15
最后登录
2013-8-30

楼主
wljlxq 发表于 2013-1-15 17:53:37 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
本人欲研究x gender m y 之间的关系,y为因变量,x为预测变量,gender、m为调节变量。x y m为连续性变量,gender即性别
研究设计为多时段追踪研究。
数据格式为 SPSS,具体如下:
id     time  x     gender     m      y
1      1      4       0          11     32
1      2      6       0          29     24
1      3      3       0          34     18
1      4      1       0          20     18
2      1      2       1          21     29
2      2      6       1          17     30
2      3      8       1          30      41
2      4      9       1          16      34
.      .        .       .            .        .
.      .        .       .            .        .
470  .      .        .             .        .
请问在SAS里面怎么分析这样的数据,如果使用多层线性模型的方法,在SAS里面该怎么实现呢。
二维码

扫码加我 拉你入群

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

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

关键词:多层线性模型 sas程序 线性模型 多层线性 Gender 如何 程序 模型 因变量

沙发
wljlxq 发表于 2013-1-15 20:31:35
有没有高手可以指点一下啊!

藤椅
wljlxq 发表于 2013-1-16 16:15:10
急啊,是我的问题问的太笼统了吗。

板凳
jingju11 发表于 2013-1-17 05:51:40
Hierarchical linear model, as it named, contains multiple levels from  primary to secondary, etc. What are the levels in your data?
As seen, your data is a longitudinal data by time. Usually we fit this kind of data as
population model:
(1) GEE- repeated statement in GENMOD
subject-specific model:
(2) R-side matix- repeated statement in MIXED
(3)G-side matrix-random statement in Mixed
In essence, hierarchical model is one type of random effect model.
All in all, we assumed, bewteen-ID observations are independent but correlated within ID. we could specify  different covariance structures based on our knowledge and how data perform.
jingju
Jingju

报纸
wljlxq 发表于 2013-1-18 10:08:24
谢谢赐教!请继续赐教。
我的模型大概为:以m 、gender为第二层组间变量,以v为第一层的组内变量,d为被预测变量,并以d的第一次水平作为作为基线控制变量,构建多层线性模型。请问这个模型该怎么用SAS编程呢

地板
huanghuiqun 发表于 2013-1-18 17:30:35
同求啊
SAS编程满热门的
自己也想学习学习啊

7
jingju11 发表于 2013-1-19 08:12:47
wljlxq 发表于 2013-1-18 10:08
谢谢赐教!请继续赐教。
我的模型大概为:以m 、gender为第二层组间变量,以v为第一层的组内变量,d为被预 ...
i don't have a full picture about your question. Anyway, a paper from Judith Singer in 1998 had a detailed explanation about this model. By the way, before using the model, you have to have a deep understanding about the context of the project. i saw you say baseline control in multi-level model, that sounds strange to me.
Jingju

8
lookslike 发表于 2013-1-19 21:06:03
你这个是重复测量的问题,sas里面有proc mixed的过程步去实现这样的分析方法,
http://support.sas.com/documenta ... r.htm#mixed_toc.htm
数据格式转变之后,就可以对照分析了

9
wljlxq 发表于 2013-1-29 21:29:42
回老家一趟,没有及时看各位热心高手的回复,抱歉。
突然发现我前后提的问题,有些对不上,所以再把我的问题重提一篇,望指教!
本人欲研究x gender m y 之间的关系,y为因变量,x为预测变量,gender、m为调节变量。x y m为连续性变量,gender即性别
研究设计为多时段追踪研究。
数据格式为 SPSS,具体如下:
id     time  x     gender     m      y
1      1      4       0          11     32
1      2      6       0          29     24
1      3      3       0          34     18
1      4      1       0          20     18
2      1      2       1          21     29
2      2      6       1          17     30
2      3      8       1          30      41
2      4      9       1          16      34
.      .        .       .            .        .
.      .        .       .            .        .
470  .      .        .             .        .
我的模型大概为:以m 、gender为第二层组间变量,以x为第一层的组内变量,y为被预测变量,并以y的第一次水平作为作为控制变量,构建多层线性模型。请问这个模型该怎么用SAS编程呢

10
wljlxq 发表于 2013-1-29 21:46:10

本人欲研究x gender m y 之间的关系,y为因变量,y1 为因变量第一次测量的水平;x为预测变量;gender、m为调节变量。x y m为连续性变量,gender即性别
研究设计为多时段追踪研究。
数据格式为 SPSS,具体如下:
id     time  x     gender        m       y    y1
1      1      4       0         11     32    32
1      2      6       0         29     24    32
1      3      3       0         34     18    32
1      4      1       0         20     18    32
2      1      2       1         21     29     29
2      2      6       1         17     30     29
2      3      8       1         30      41    29
2      4      9       1         16      34    29


proc mixed  method=reml;
class id;
model  y=m gender︱x

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 08:39