| ancova_resolve_contrasts | R Documentation |
Translates the optional group_contrasts specification into a list of contrast
records. Each record holds a weight vector over the group levels (weights, in
factor-level order, summing to zero), the output parameter name, an optional
user label, and the level_1 / level_2 group labels for simple pairwise
contrasts (NA for general weight-vector contrasts).
ancova_resolve_contrasts(group_contrasts, orig_levels, labels)
group_contrasts |
Either |
orig_levels |
Character vector of the group factor levels (in order). |
labels |
Character vector of |
When group_contrasts is NULL the default is each non-reference level versus the
reference level, using the backwards-compatible trt / trt_alt2 / ... naming.
Otherwise the list must be fully named; each element is either a length-2 character
vector c(minuend, subtrahend) (a pairwise contrast) or a numeric weight vector over
the group levels, and the list name is used as the parameter name.
A list of contrast records (see description).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.