全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
4418 3
2012-01-01
R里面做logistic回归以后模型的拟合优度怎么检验啊~参数的显著性检验是看p value的吗~
二维码

扫码加我 拉你入群

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

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

全部回复
2012-1-3 11:20:52
贴个结果 看看~~~~~~
二维码

扫码加我 拉你入群

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

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

2012-1-5 19:13:40
Call:
glm(formula = y ~ x1 + x2 + x3, family = binomial)

Deviance Residuals:
    Min       1Q   Median       3Q      Max  
-1.9863  -0.6675  -0.5023   0.5473   2.7843  

Coefficients:
            Estimate Std. Error z value Pr(>|z|)   
(Intercept)   0.4607     0.7066   0.652  0.51436   
x1           -3.8294     0.6025  -6.355 2.08e-10 ***
x2            1.3622     0.4729   2.881  0.00397 **
x3           -1.8487     0.5850  -3.160  0.00158 **
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 292.90  on 241  degrees of freedom
Residual deviance: 216.48  on 238  degrees of freedom
AIC: 224.48

Number of Fisher Scoring iterations: 5





是可以看p_value 就可以的,,比如上面的回归得到的方程就是
ln(p/(1-p)=0.4607-3.8294x1+1.3622x2-1.8487x3
二维码

扫码加我 拉你入群

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

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

2012-1-6 00:50:05
Please check the book "A modern approach to regression with R" by S.J.Sheather. Section 8.1.3, 8.1.4 and 8.1.5.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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