[R] Categorical Variables and glm()

Marc Schwartz marc_schwartz at comcast.net
Fri Jan 23 18:53:06 CET 2009


on 01/23/2009 11:10 AM Stephen Collins wrote:
> When including categorical variables in a regression, the default in R is 
> to set the first level as the base.  Is there an option to specify a 
> different level as the base? 

See ?relevel and the See Also's listed therein.

HTH,

Marc Schwartz




More information about the R-help mailing list