centered_contrasts | R Documentation |
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.
centered_contrasts(x)
is_centered(x)
all_centered(x, ignore_intercept = TRUE)
which_centered(x)
x |
A hypr object |
ignore_intercept |
If |
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.
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
)
is_centered()
: Check which contrasts of x
are centered
all_centered()
: Check whether all contrasts of x
are centered
which_centered()
: Check which contrasts of x
are centered
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.