View source: R/is_orthogonal.R
is_orthogonal | R Documentation |
Given a contrast matrix or list of contrast matrices (eg from
enlist_contrasts()
), return a logical vector of whether each contrast is
orthogonal or not.
is_orthogonal(contrast_matrices, USE.NAMES = FALSE)
contrast_matrices |
Contrast matrix or list of contrast matrices |
USE.NAMES |
Logical, whether vector should be named |
Logical vector, will retain names of a passed list
is_orthogonal(treatment_code(5)) # FALSE
is_orthogonal(helmert_code(5)) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.