.switch_reference_if_needed | R Documentation |
Check if the contrast matrix is able to switch reference levels, and if it is requested, do so
.switch_reference_if_needed(
contrast_matrix,
new_reference_label = NA,
new_reference_index
)
contrast_matrix |
Contrast matrix |
new_reference_label |
Name of the level to use |
new_reference_index |
Index of the level to use |
Contrast matrix with reference level swapped if needed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.