[R] GLM and factor in forular

From: Knut Krueger <rh_at_family-krueger.com>
Date: Tue, 18 Dec 2007 14:52:55 +0100


I used a GLM with a factor variable and wondered about that the first factor is missing in the results.
means there is no result for Y1
Is it wrong to use factors in GLM or is there a statistical reason that there is no Y1 result ?

X<-rnorm(31:40)
Y<-factor(c(1:10))
glm(X~Y)

Knut



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 18 Dec 2007 - 14:02:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 18 Dec 2007 - 14:30:20 GMT.

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