Learn R Programming

qualityTools (version 1.31.1)

facDesign: facDesign

Description

Generates a 2^k full factorial design.

Usage

facDesign(k = 3, replicates = 1, blocks = 1, centerCube = 0)

Arguments

k
number of factors
replicates
number of replicates per factor combination
blocks
number of blocks
centerCube
number of centerpoints within the 2^k design

Value

  • an object of class facDesign

Details

facDesign generates 2^k full factorial designs.

See Also

fracDesign

Examples

Run this code
vp.full = facDesign(k = 3)                  #returns a 2^3 full factorial design
response(vp.full) = rnorm(2^3)              #generate some random response
summary(vp.full)                            #summary of the full factorial design (especially no defining relation)

#------------

vp.rep = facDesign(k = 2, replicates = 3, centerCube = 4)  #returns a full factorial design with 3 replications per factor combination and 4 center points
names(vp.rep) = c("Name 1", "Name 2") #set names
units(vp.rep) = c("min", "F")        #set units
lows(vp.rep) = c(20, 40, 60)          #set low and high factor values
highs(vp.rep) = c(40, 60, 80)         
summary(vp.rep)                       #summary of the replicated full factorial Design

Run the code above in your browser using DataLab