contr.orthonormal | R Documentation |
Return a matrix of orthornomal contrasts.
Code is based on stanova::contr.bayes
and corresponding to description
by \insertCiterouder2012default;textualBayesTools
contr.orthonormal(n, contrasts = TRUE)
n |
a vector of levels for a factor, or the number of levels |
contrasts |
logical indicating whether contrasts should be computed |
A matrix with n rows and k columns, with k = n - 1 if contrasts = TRUE
and k = n
if contrasts = FALSE
.
contr.orthonormal(c(1, 2))
contr.orthonormal(c(1, 2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.