楼主: yerikchou
1090 2

[问答] 请教一个proc logistic的问题 [推广有奖]

  • 0关注
  • 0粉丝

学前班

40%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
20 点
帖子
1
精华
0
在线时间
0 小时
注册时间
2015-5-2
最后登录
2017-2-26

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
data q52;
input Alcohol_Consumption $ yes total;
cards;
0 48 17144
<1 38 14502
1-2 5 793
3-5 1 127
>=6 1 38
;
run;

proc logistic data=q52 descending;
class Alcohol_Consumption;
model yes/total=Alcohol_Consumption /scale=none aggregate;
run;


以上是代码
Deviance and Pearson Goodness-of-Fit Statistics的df为什么是0
二维码

扫码加我 拉你入群

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

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

关键词:logistic ogistic logisti logist logis

沙发
calsunny 发表于 2015-5-3 09:40:36 |只看作者 |坛友微信交流群
proc logistic 因变脸难道不应该是0 或者1吗?你这里好像是介于0和1之间?

使用道具

藤椅
jingju11 发表于 2015-5-4 13:08:43 |只看作者 |坛友微信交流群
In your data for the model, Number of unique profiles = 5. Variable Alcohol_Consumption takes DF of 4 and Intercept of 1 and thus total 5. 5-5=0. There is no DF left at all. That is, you are fitting a saturated model. Goodness-of-Fit, say Deviance, is to test the difference between the Full model and the model for Aggregated variables (it is the full model here). That is why the value of Deviance =0 as well.

You can see my blog in which I did some simple calculations.

JingJu

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-9-21 08:52