pairwise_contrasts | R Documentation |
Construct pairwise contrasts for all combinations of factor levels.
pairwise_contrasts(levels, facname, where = NULL, name_prefix = "con")
levels |
A vector of factor levels to be compared. |
facname |
The name of the factor variable (column name in the design) these levels belong to. |
where |
An optional formula specifying the subset over which the contrast is computed. |
name_prefix |
A character string to prefix the generated contrast names (default: "con"). |
A contrast_set object containing pairwise contrasts for all combinations of factor levels.
# Assuming 'my_factor' is a column name
pairwise_contrasts(c("A", "B", "C"), facname = "my_factor")
pairwise_contrasts(c("A", "B", "C"), facname = "my_factor", name_prefix = "pair")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.