R glm summary lists every value of independent variable

I'm running a glm in r on a dataframe with 2 values.

str(INV)
'data.frame':   5614 obs. of  2 variables:
 $ MSACode: Factor w/ 70 levels "40","80","440",..: 37 64 58 56 66 14 38 37 66 14 ...
 $ NotPaid: Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1 1 1 ...

The code I used to run it:

GlmModel <- glm(NotPaid ~ MSACode,family=binomial(link="logit"),data=training)
print(summary(GlmModel))

The result from the summary is showing the individual values rather than just one value for the field.

> print(summary(GlmModel))

Call:
glm(formula = NotPaid ~ MSACode, family = binomial(link = "logit"), 
    data = training)

Deviance Residuals: 
    Min       1Q   Median       3Q      Max  
-1.9728  -0.8352  -0.6501   0.9346   2.8245  

Coefficients:
              Estimate Std. Error z value Pr(>|z|)
(Intercept) -1.657e+01  1.697e+03  -0.010    0.992
MSACode80    1.462e+01  1.697e+03   0.009    0.993
MSACode440  -7.494e-07  1.924e+03   0.000    1.000
MSACode520   1.547e+01  1.697e+03   0.009    0.993
MSACode640   1.587e+01  1.697e+03   0.009    0.993
MSACode720   1.477e+01  1.697e+03   0.009    0.993
MSACode870   1.657e+01  1.697e+03   0.010    0.992
MSACode1080  1.455e+01  1.697e+03   0.009    0.993

I don't understand these results - why is it showing each MSACode value separately? Thanks.



from Recent Questions - Stack Overflow https://ift.tt/3HTjgcH
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations