Orthonormal Contrast Generator
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. |
size |
Default '1'. The length of the simplex vector. |
A matrix of Orthonormal contrasts.
contr.simplex(4)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.