Learn R Programming

kergp (version 0.5.7)

contr.helmod: Modified Helmert Contrast Matrix

Description

Modified Helmert contrast (or coding) matrix.

Usage

contr.helmod(n)

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.

Arguments

n

Integer.

Details

The returned matrix is a scaled version of contr.helmert(A).

Examples

Run this code
A <- contr.helmod(6)
crossprod(A)

Run the code above in your browser using DataLab