Отклонение всех переменных - PullRequest
0 голосов
/ 21 марта 2020

При выполнении регрессии logisti c в R все значения p оказались равными 1, отвергая все предположения. В чем будет ошибка?

# Build Logistic Model
logdown <- glm(classification ~ bp+bgr+bu+sod+pot+hemo+pcv+wc+rc, family = "binomial", data = down_train)

Предупреждающие сообщения: 1: glm.fit: алгоритм не сходится 2: glm.fit: подогнанные вероятности численно 0 или 1 произошло

summary(logdown)

Call: glm(formula = classification ~ bp + bgr + bu + sod + pot + hemo
     pcv + wc + rc, family = "binomial", data = down_train) 

 Deviance Residuals: 
           Min             1Q         Median             3Q            Max  
 -0.0000231166  -0.0000000211   0.0000000000   0.0000000211   0.0000310084   

 Coefficients:
                   Estimate     Std. Error z value Pr(>|z|) 
(Intercept)     384.391182 1244660.587236       0        1 
bp                0.954292    5868.460874       0        1 
bgr               0.503592    1472.911453       0        1 
bu               -0.104507     857.081651       0        1
sod              -2.889344   10937.812900       0        1 
pot               7.801181   54746.963038       0        1 
hemo             -6.398532   25335.287408       0        1 
pcv              -1.060024    6935.366539       0        1 
wc                0.001903      25.199416       0        1 
rc               -6.043063   47852.993574       0        1

(Dispersion parameter for binomial family taken to be 1)

Null deviance: 85.9502503894332  on 61  degrees of freedom Residual deviance:
                0.0000000030718  on 52  degrees of freedom 
AIC: 20    
Number of Fisher Scoring iterations: 25
...