contr.helmod: Modified Helmert Contrast Matrix

View source: R/miscUtils.R

contr.helmodR 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)


kergp documentation built on May 29, 2024, 10:25 a.m.