[R] summary() after changing contrasts
S Ellison
S.Ellison at LGCGroup.com
Fri Aug 10 15:55:23 CEST 2012
You might take a look in he car package. if I recall correctly, it includes some 'pretty' versions of contrasts that tidy up the displayed format.
S Ellison
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Daniel Weitzenfeld
> Sent: 09 August 2012 22:08
> To: r-help at r-project.org
> Subject: [R] summary() after changing contrasts
>
> Hi,
> After running a regression on a factor variable, summary()
> reports the coefficients 'nicely,' ie, labelled with a string
> that is a concatenation of the variable name and the factor label.
> However, changing the base case a la
>
> contrasts(variable)<-contr.treatment(N, base=x)
>
> results in the coefficients being reported as a less-helpful
> concatenation of variable name plus a digit.
>
> Of course, it's possible to map the digit to the appropriate
> factor label, but I'm wondering if there's an easy fix...
> -Dan
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
More information about the R-help
mailing list