[R] controling omitted category in factor()

From: <toby909_at_gmail.com>
Date: Mon 02 Apr 2007 - 22:07:16 GMT


Hi All

How can I specify which category R should omit when running a linear model with categorical predictors? I saw it omits the first category by default, but I like to have the 3rd category omitted.

Thanks for your hints.

Toby



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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Apr 03 22:19:53 2007

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 Tue 03 Apr 2007 - 13:30:43 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.