[R] summary() after changing contrasts

Daniel Weitzenfeld
2012-08-09T21:08:15Z

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]]