interaction_contrast | R Documentation |
Create an interaction contrast specification
interaction_contrast(A, name, where = NULL)
A |
A formula specifying the interaction contrast |
name |
The name of the contrast |
where |
Optional environment for evaluating the formula |
An interaction_contrast_spec object containing the specification for generating interaction contrast weights
oneway_contrast
for main effects,
pair_contrast
for pairwise comparisons
# Create an interaction contrast for factors A and B
con <- interaction_contrast(~ A * B, name = "A_by_B")
# Create an interaction contrast with a specific environment
con <- interaction_contrast(~ A * B, name = "A_by_B",
where = new.env())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.