[R] Levels and GLM
justin rapp
jdrapp at gmail.com
Fri Jul 7 20:22:29 CEST 2006
I am using the as.factor command to use with glm. When I use the command
>maj <- as.factor(data.logistic$Majors)
>maj
I receive the following output:
[1] M M N M M M M N N M M M N M M M M M M M M M M M N M N N M M N M
M N M M M M M
[40] N M N M M N M M M N M N M N M N N N M N M M M M M M N M N M M M
M M N N M M M
[79] M M M N N M M N M N M M M M M M M M M M M M M M M N M M M M M N
M M M M M N M
[118] M M M N M N N M M M M M M M M N M N M M M M M N M M M M N M M M
N N M M M N M
[157] M M M M M M M M M M M M M N M M N N M M N M M M M M M M M M M M
M M N M N M M
[196] M N M M M M M M M M N M M M M M M M M N M M M M M M M M M M M M
M M N M M N N
[235] M M M M M N M M M M M M N N M M N M M M M M M M M M M M M M M M
M N M M M M N
[274] N M M M M M M N M M M M M M M M M M N N M N M M M M M M M M M M
N M N N M M M
[313] M M M M M M M N M M M M M N M M M M M M M M M M M M M M M N M M
M M M M M N M
[352] M N M N M M N M M M M N M M M M M M M M M M N M M N N
Levels: M N
When I enter:
> logistic.glm <- glm(data.logistic$X100.Yard.Average ~ data.logistic$Overall + maj, family=binomial)
> logistic.glm
I receive the following output:
Call: glm(formula = data.logistic$X100.Yard.Average ~
data.logistic$Overall + maj, family = binomial)
Coefficients:
(Intercept) data.logistic$Overall majN
2.38819 -0.02718 -0.18385
Degrees of Freedom: 377 Total (i.e. Null); 375 Residual
Null Deviance: 514.5
Residual Deviance: 410.7 AIC: 416.7
My question: Why is there no output for majM? Any help would be
greatly appreciated
More information about the R-help
mailing list