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.
Examples
is_orthogonal(treatment_code(5)) # FALSE
#> [1] FALSE
is_orthogonal(helmert_code(5)) # TRUE
#> [1] TRUE