pair_contrast | R Documentation |
Construct a sum-to-zero contrast between two logical expressions.
pair_contrast(A, B, name, where = NULL)
A |
A formula representing the first logical expression in the contrast. |
B |
A formula representing the second logical expression in the contrast. |
name |
A character string specifying the name of the contrast (mandatory). |
where |
An optional formula specifying the subset over which the contrast is computed. |
A pair_contrast_spec object containing the sum-to-zero contrast between the two logical expressions.
# A hypothetical experiment with a factor 'category' that takes on values of 'face' and 'scene'
pair_contrast(~ category == "face", ~ category == "scene", name="face_scene")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.