SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 2128|回复: 2
打印 上一主题 下一主题

关于参照水平自定义的问题 SAS

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2012-4-24 00:18:17 | 只看该作者

关于参照水平自定义的问题 SAS

菜鸟求助个问题:
在研究无序多分类自变量X对二分类应变量的影响时,常采取LOGISTIC MODEL分析,捷报报告时,常DUMMY后,以X变量的某一水平如SAS默认以最高水平值)为REFERENCE LEVEL ,其他水平与其比较,计算 BETA ,EXP(BETA)等参数。 现在我想自定义参照组水平值,如以最低水平值为REFERENCE,试验如下:
logistic过程里PARAM语句可行;
proc logistic;
  class x(param=ref ref=first);
  model y =x/solution;
run;
但MIXED过程中 param语句无效。
proc mixed data=sasuser.lx1;
   class no1 cishu (param=ref ref=first) ;
   model ef=cishu/solution;
run;
请教:在MIXED模型中,是否也有同样类似语句。实在不想重新 recode新变量,多谢。
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2012-4-24 06:11:42 | 只看该作者

Re: 关于参照水平自定义的问题 SAS

proc MIXED, similar to PROC GLM, uses GLM parameterization. That is, it won't take reference parameterization. But you can count on the future SAS version, i heard that that will be included in the next version(?).
without re-coding the variable, you can use the statement like estimate, contrast, lsmeans or means to get what you want. You may also know the POSTFIT function for sas starting from its verison of 9.2. Roughly, use STORE statement to record the data fitting informaiton and then you can get some results, such as estimates, lsmeans,etc.  without re-fitting the model.
jingju
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2012-4-24 14:13:31 | 只看该作者

Re: 关于参照水平自定义的问题 SAS

[quote="jingju11":1bzvbbfh]proc MIXED, similar to PROC GLM, uses GLM parameterization. That is, it won't take reference parameterization. But you can count on the future SAS version, i heard that that will be included in the next version(?).
without re-coding the variable, you can use the statement like estimate, contrast, lsmeans or means to get what you want. You may also know the POSTFIT function for sas starting from its verison of 9.2. Roughly, use STORE statement to record the data fitting informaiton and then you can get some results, such as estimates, lsmeans,etc.  without re-fitting the model.
jingju[/quote:1bzvbbfh]
恩,谢谢京剧,或许该用contrast才能达到我预期目的了,不过那还不如直接 RECODE变量了,呵呵。
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-5-6 18:12 , Processed in 0.081444 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表