contrast | R Documentation |
Define a linear contrast using a formula expression.
contrast(form, name, where = NULL)
form |
A formula describing the contrast. |
name |
A character label for the contrast. |
where |
An expression defining the subset over which the contrast is applied (default: NULL). |
A list containing the contrast specification.
# A minus B contrast
contrast(~ A - B, name="A_B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.