oneway_contrast | R Documentation |
Create a one-way contrast specification
oneway_contrast(A, name, where = NULL)
A |
A formula specifying the contrast |
name |
The name of the contrast |
where |
Optional environment for evaluating the formula |
A oneway_contrast_spec object that can be used to generate contrast weights
interaction_contrast
for testing interactions,
pair_contrast
for pairwise comparisons
# Create a one-way contrast for a factor 'basis'
con <- oneway_contrast(~ basis, name = "Main_basis")
# Create a one-way contrast with a specific environment
con <- oneway_contrast(~ basis, name = "Main_basis",
where = new.env())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.