.switch_reference_level | R Documentation |
Reorders the rows of a contrast matrix to properly set the reference level
.switch_reference_level(contrast_matrix, old_reference, new_reference)
contrast_matrix |
An unlabeled contrast matrix |
old_reference |
The previously specified reference level, usually the
default for the scheme found by |
new_reference |
The index of the row to use as the new reference level |
A matrix with the reordered rows and correct values for the reference level
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.