全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1189 2
2015-05-02
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
二维码

扫码加我 拉你入群

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

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

全部回复
2015-5-3 09:40:36
proc logistic 因变脸难道不应该是0 或者1吗?你这里好像是介于0和1之间?
二维码

扫码加我 拉你入群

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

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

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
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群