Learn R Programming

rje (version 1.12.1)

designMatrix: Orthogonal Design Matrix

Description

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

Usage

designMatrix(n)

Value

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

Arguments

n

integer containing the number of elements in the set.

Author

Robin Evans

See Also

combinations, subsetMatrix.

Examples

Run this code

designMatrix(3)

Run the code above in your browser using DataLab