Learn R Programming

rje (version 1.10.16)

designMatrix: Orthogonal Design Matrix

Description

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

Usage

designMatrix(n)

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.

See Also

combinations, subsetMatrix.

Examples

Run this code
# NOT RUN {
designMatrix(3)

# }

Run the code above in your browser using DataLab