楼主: addictedtome
3943 5

关于使用proc mixed做random effect的问题 [推广有奖]

  • 0关注
  • 4粉丝

已卖:22份资源

副教授

43%

还不是VIP/贵宾

-

威望
0
论坛币
183 个
通用积分
10.6659
学术水平
21 点
热心指数
30 点
信用等级
14 点
经验
22165 点
帖子
638
精华
0
在线时间
1000 小时
注册时间
2008-8-31
最后登录
2025-7-6

楼主
addictedtome 发表于 2010-11-8 09:01:20 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我的数据不是完整的数据集,而是数据集里的一部分,所以想使用random effect来对OLS的结果进行检验。

下面是我自己写的程序,能够运行出结果,但我自己不知道是否正确,是否有人能帮忙纠正?

proc mixed data=mydata;

class time company;          /*数据以时间和公司来排列,所以我尝试class time & company*/

model DV=INDV1 INDV2.......INDV9 /solution;              /*DV是被解释变量,INDV是解释变量,一共9个解释变量*/

random time company;

run; quit;

这个code是否正确?望大家指正,谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:proc mixed Effect random Mixed rand proc Effect random Mixed

浪漫主义者总是生活在别处

沙发
addictedtome 发表于 2010-11-8 16:10:20
泪奔。。。
浪漫主义者总是生活在别处

藤椅
addictedtome 发表于 2010-11-9 16:33:29
没戏了吗?
浪漫主义者总是生活在别处

板凳
lutian08 发表于 2010-11-10 09:04:16
3# addictedtome
好象不正确,最少你的model里没有包括random里的两个变量

报纸
lutian08 发表于 2010-11-10 09:06:38
涉及时间的,要是重复测量的数据的话,需要采用重复测量的数据处理方法

地板
jingju11 发表于 2010-11-10 10:07:22
When variables are included in model statement, that means, they are fixed; when variables are included in both model and random statements, they are both fixed and random. Sometimes, you have to have a reason for that. Anyway, I would propose a model as follows:

...
model ... =time ....;
repeated time/subject =company;
...
;
For longitudinal data, time usually is important. Repeated statement is trying to formulate R matrix but random statement to G matrix; oftentimes, they are not equivalent.

There is no model that is absolutely wrong but it is up to your own judgment.
JingJu

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

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