Re: [R] Coding methods for factors

2008-04-21 Thread Rolf Turner
On 22/04/2008, at 11:59 AM, Paul Lynch wrote: > 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 i

[R] Coding methods for factors

2008-04-21 Thread Paul Lynch
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