fct_contr_sum | R Documentation |
Functions for manipulating the contrasts of factors.
A wrapper of contr.sum
, but the resulting contrasts matrix included column names
and is easier for extracting coefficients from a fitted model object
fct_contr_sum(x, drop.levels = FALSE)
fct_contr_check_trt(x, checks, drop.levels = FALSE)
x |
A factor. |
drop.levels |
Logical. Should unused levels be dropped? |
checks |
Levels of the factor |
fct_contr_check_trt()
:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.