designFactorial: Create a Design Matrix for a Factorial Design

Description Usage Arguments Value Author(s) See Also Examples

Description

The function creates a design matrix suitable for analyzing results from a factorial experiment where all factors have two levels.

Usage

1
designFactorial(nfactors, replications = 1, interactions = FALSE)

Arguments

nfactors

The number of two-level factors in the experiment.

replications

The number of replications at each combination of factor levels.

interactions

If TRUE, columns will be included representing the interactions between all the factors.

Value

A matrix where the number of rows is 2^nk, where n is the number of factors and k is the number of replications. The entries are -1's and 1's.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

designBalanced, designOneGroup, designTwoGroups, designManyGroups

Examples

1

lestat documentation built on May 2, 2019, 2:09 p.m.