Factorial Designs

Share:

Description

Generate factorial designs

Usage

1
  gen.Factr(n.vars, n.levels, varNames = NULL, scale = TRUE)

Arguments

n.vars

The number of factors or independent variables

n.levels

The number of levels of the factor

varNames

The names of factors. If it is not provided, the default names are X1, X2,..., Xk.

scale

If it is scale = TRUE, the level values will be scaled to -1 to 1.

Value

gen.Factr is called to generate the data frame of the design matrix of the factorial design.

Examples

1
2
CCD1<- gen.Factr(n.vars = 3, n.levels = 5)
CCD2<- gen.Factr(n.vars = 3, n.levels = 5, varNames = c("T1","T2","T3"), scale = FALSE)