[R] Coding methods for factors

From: Paul Lynch <plynchnlm_at_gmail.com>
Date: Mon, 21 Apr 2008 16:59:30 -0700 (PDT)

Is there a way in R to control how factors are coded? It looks like reference cell coding is used by default. Is there a way to get effects coding?

(I could just set up the factor dummy variables as I wish and use lm, but I'm wondering if there is a better way.)



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 22 Apr 2008 - 00:05:25 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 22 Apr 2008 - 00:30:29 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.

list of date sections of archive