[R] Coding methods for factors

Paul Lynch plynchnlm at gmail.com
Tue Apr 22 01:59:30 CEST 2008


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.)

Thanks,
    --Paul



More information about the R-help mailing list