| centered_contrasts {hypr} | R Documentation |
Contrast centering
Description
Centeredness of contrasts is critical for the interpretation of interactions and intercepts. There are functions available to check for centered contrasts and to realign contrasts so that they are centered.
Usage
centered_contrasts(x)
is_centered(x)
all_centered(x, ignore_intercept = TRUE)
which_centered(x)
Arguments
x |
A hypr object |
ignore_intercept |
If |
Details
The function centered_contrasts(x) will return a copy of x where all contrasts were centered to a zero mean.
The functions is_centered(x) and which_centered() indicate which contrasts of x, are centered. all_centered(x) will return TRUE if all contrasts in x are centered or FALSE if at least one contrast is not.
Value
A centered set of hypr contrasts (centered_contrasts), a single logical value (all_centered), a logical vector (is_centered), or an integer index vector (which_centered)
Functions
-
is_centered(): Check which contrasts ofxare centered -
all_centered(): Check whether all contrasts ofxare centered -
which_centered(): Check which contrasts ofxare centered