Learn R Programming

qualityTools (version 1.53)

blocking: Blocking

Description

Blocks a given factorial or response surface design.

Usage

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

Arguments

fdo
needs to be an object of class facDesign.
blocks
numerical value giving the number of blocks.
BoR
logical value indicating whether the replicates should be blocked or not. By default BoR is set to FALSE.
random.seed
numerical variable for set.seed to generate repeatable results for randimization within blocks.
useTable
character indicating which table to use. The follwing options will be accepted:
  • rms- table from reference
  • calc- table calculated by qualityTools
gen
giving the generator that will be used.

Value

  • The function blocking() returns a an object of class facDesign with blocking structure.

References

MYERS, Raymond H.; MONTGOMERY, Douglas C.; ANDERSON-COOK, Christine M.: Response Surface Methodology. New York: WILEY ,2009

See Also

facDesign http://www.r-qualitytools.org/Improve.html

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