RefLevel | R Documentation |
Returns all the reference levels in the factors used in a linear model. It is customer friendly to report also the reference level in lm summaries, which normally are suppressed.
RefLevel(x)
x |
lm object, linear model with factors as predictors. |
For reporting tables of linear models we might want to include an information about the used reference levels, which remain uncommented in the default lm
result output. RefLevel()
allows to add a footnote or integrate the reference levels in the coefficient table.
a named vector containing the reference levels of all factors
It's not clear how general the used algorithm is for more exotic models. dummy.coef
could in such cases be an alternative.
Andri Signorell <andri@signorell.net>
dummy.coef
, Response
, relevel
, lm
RefLevel(lm(breaks ~ wool + tension, data = warpbreaks))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.