.get_reference_levels {contrastable} | R Documentation |
Get reference levels from a (possibly set) list of contrasts
Description
Given a list of contrast matrices, if the contrast matrices were explicitly generated via formulas and they have already had their parameters parsed, use the parameters to look up the reference level for each contrast matrix. If the parameters have not been computed (usually because the contrasts are using the defaults) then look up the reference level manually.
Usage
.get_reference_levels(contrast_list, list_params = NULL, formulas = NULL)
Arguments
contrast_list |
List of contrasts, does not need to be named |
list_params |
Optional list of parameters, see |
formulas |
Optional list of formulas, needed if |
Value
Character vector of reference levels. If a contrast matrix is not specified for row names, the character value will denote the integer index of the row for the reference level (usually 1).