unit_contrast | R Documentation |
Construct a contrast that sums to 1 and is used to define contrasts against the baseline.
unit_contrast(A, name, where = NULL)
A |
A formula representing the contrast expression. |
name |
A character string specifying the name of the contrast. |
where |
An optional formula specifying the subset of conditions to apply the contrast to. |
A unit_contrast_spec object containing the contrast that sums to 1.
con <- unit_contrast(~ Face, name="Main_face")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.