designMatrix: Orthogonal Design Matrix

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/subsetMatrix.R

Description

Produces a matrix whose rows correspond to an orthogonal binary design matrix.

Usage

1

Arguments

n

integer containing the number of elements in the set.

Value

An integer matrix of dimension 2^n by 2^n containing 1 and -1.

Note

The output matrix has orthogonal columns and is symmetric, so (up to a constant) is its own inverse.

Author(s)

Robin Evans

See Also

combinations, subsetMatrix.

Examples

1

rje42/rje documentation built on Aug. 15, 2017, 7:43 a.m.