View source: R/contr.simplex.R
contr.simplex | R Documentation |
Generates orthonormal (orthogonal and normalized) contrasts. Each row is the vertex of an N-dimensional simplex. The only exception are contrasts for the 2-level case, which return 1 and -1.
contr.simplex(n, size = NULL)
n |
The number of levels in the catagorical variable. If this is a factor or character vector, 'n' will be 'length(n)' |
size |
Default '1'. The length of the simplex vector. |
A matrix of Orthonormal contrasts.
contr.simplex(4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.