SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 618|回复: 1
打印 上一主题 下一主题

test the deviance of two logistic regression model

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2009-4-2 01:58:14 | 只看该作者

test the deviance of two logistic regression model

各位,

请问有人知道any syntax of SAS 可以test the deviance of two logistic regression model?
我不想自己运算p-value = 1-pchiq(deviance1, deviance2, 2).

谢谢!



filename mydata 'C:\Documents and Settings\skong\Desktop\mytestSAS.txt';

data mytest;
infile mydata firstobs =2;
input FID $ IID $ PAT MAT SEX PHENOTYPE rs1954187_G PC1 PC2;
run;

proc logistic data=mytest;
model PHENOTYPE (event='1')= rs1954187_G PC1 PC2;
run;

proc logistic data=mytest;
model PHENOTYPE (event='1')= rs1954187_G SEX PC1 PC2 rs1954187_G*SEX ;
test SEX,rs1954187_G;
run;
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2009-4-19 06:41:02 | 只看该作者

Re: test the deviance of two logistic regression model

smaller deviance may be better model because we already count on the degree of freedom. why bothering testing it? sometimes we use deviance to see goodness of fit. that is availabel when you use option scale and aggregate.
i am little confused her: deviance test is any different to likelihood ratio test?
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-2-5 12:20 , Processed in 0.330926 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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