[R] Levels and GLM

From: justin rapp <jdrapp_at_gmail.com>
Date: Sat 08 Jul 2006 - 04:22:29 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 08 04:26:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 08 Jul 2006 - 06:15:58 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.