Description Usage Arguments Value
View source: R/get_contrast_matrix.R
Obtain a contrast matrix for a data set given a specified formula
1 | get_contrast_matrix(data, formula, contrast_kind = NULL)
|
data |
A data frame (or tibble). |
formula |
A formula starting with '~' expressing the model |
contrast_kind |
The kind of contrasts to use. Used to quickly convert all factors to a particular non-R-default contrast kind. |
A contrast matrix with the formula & data saved as attributes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.