contr.helmod {kergp} | R Documentation |
Modified Helmert Contrast Matrix
Description
Modified Helmert contrast (or coding) matrix.
Usage
contr.helmod(n)
Arguments
n |
Integer. |
Details
The returned matrix is a scaled version of contr.helmert(A)
.
Value
An orthogonal matrix with n
rows and n - 1
columns. The
columns form a basis of the subspace orthogonal to a vector of
n
ones.
Examples
A <- contr.helmod(6)
crossprod(A)
[Package kergp version 0.5.7 Index]