楼主: husterjing
15248 2

[问答] R的回归结果中有NA [推广有奖]

  • 0关注
  • 1粉丝

高中生

62%

还不是VIP/贵宾

-

威望
0
论坛币
25 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
370 点
帖子
19
精华
0
在线时间
24 小时
注册时间
2013-3-5
最后登录
2015-10-22

楼主
husterjing 发表于 2013-6-11 17:04:21 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Call:
glm(formula = Y ~ project + duty_time + age + edu + complete +
    dist + pro_c, family = binomial, data = city)
Deviance Residuals:
    Min       1Q   Median       3Q      Max  
-2.5340   0.0689   0.1900   0.4103   1.5710  
Coefficients: (1 not defined because of singularities)
            Estimate Std. Error z value Pr(>|z|)   
(Intercept) 34.64496    7.50492   4.616 3.91e-06 ***
project     -0.41010    0.54316  -0.755   0.4502   
duty_time    0.08147    0.09253   0.880   0.3787   
age         -0.51124    0.10750  -4.756 1.98e-06 ***
edu          0.60957    0.35576   1.713   0.0866 .  
complete     0.57447    1.30409   0.441   0.6596   
dist         0.26857    0.56732   0.473   0.6359   
pro_c             NA         NA      NA       NA   
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Dispersion parameter for binomial family taken to be 1)
    Null deviance: 211.28  on 359  degrees of freedom
Residual deviance: 153.51  on 353  degrees of freedom
  (2 observations deleted due to missingness)
AIC: 167.51
Number of Fisher Scoring iterations: 7

我对数据进行progit回归,为什么会出现NA?该如何修改?
二维码

扫码加我 拉你入群

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

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

关键词:回归结果 observations coefficients coefficient observation because family Error

沙发
husterjing 发表于 2013-6-11 17:24:59
刚在google上搜到是这样解释的:
NA as a coefficient in a regression indicates that the variable in question is linearly related to the other variables. In your case, this means that Q3=a×Q1+b×Q2+c  for some a,b,c . If this is the case, then there's no unique solution to the regression without dropping one of the variables. Adding Q4  is only going to make matters worse.
大家遇到类似问题可以参考下

藤椅
曜曜切克闹~ 学生认证  发表于 2017-3-20 08:57:18
在famafrench三因素模型的回归中系数都显示NA 这是因为这三因素共线性严重?

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-24 09:22