Learn R Programming

qualityTools (version 1.31.1)

blocking: Blocking

Description

Blocks a given factorial or response surface design.

Usage

blocking(fdo, blocks, BoR = FALSE, random.seed, useTable = "rsm", gen)

Arguments

fdo
an object of class facDesign
blocks
number of blocks
BoR
blocking on replicates (TRUE/FALSE)
random.seed
random.seed for randimization within blocks
useTable
which table to use rms - table from first reference or calc - table calculated by qualityTools
gen
generator to use

Value

  • an object of class facDesign with blocking structure

References

H. MYERS, Raymond; C. MONTGOMERY, Douglas; M.ANDERSON-COOK, Christine: Response Surface Methodology. WILEY 3rd ed. (2009)

See Also

facDesign

Examples

Run this code
#create a 2^3 full factorial design
fdo = facDesign(k = 3)

#make it a design with 2 blocks
blocking(fdo, 2)

#create a response surface design for 3 factors
fdo = rsmDesign(k = 3)

#make it a design with 3 blocks (i.e. 1 block for star part and 2 blocks for the cube part)
blocking(fdo, 3)

Run the code above in your browser using DataLab