rebase | R Documentation |
Change a factor's reference level
rebase(x, lev)
x |
A factor to be rebased |
lev |
The level of the factor that is to be regarded as the 'control' to which all others will be compared |
Rather than change the order of the levels, this changes the way the factor is parametrised, so that the levels are in the natural order but the coefficients can reflect experimental design considerations
A factor with a new contrast attribute
Gavin Kelly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.