Learn R Programming

r6qualitytools (version 1.0.1)

blocking: blocking: Blocking

Description

Blocks a given factorial or response surface design.

Usage

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

Value

The function blocking returns an object of class facDesign.c with blocking structure.

Arguments

fdo

An object of class facDesign.c.

blocks

Numeric value giving the number of blocks.

random.seed

Numeric value to generate repeatable results for randomization within blocks.

useTable

Character indicating which table to use. The following options will be accepted:

  • `rms`: table from reference

  • `calc`: table calculated by package

gen

Giving the generator that will be used.

See Also

facDesign.

Examples

Run this code
# Example 1
#Create a 2^3 full factorial design
fdo <- facDesign(k = 3)
# Apply blocking to the design with 2 blocks
blocking(fdo, 2)

# Example 2
#Create a response surface design for 3 factors
fdo <- rsmDesign(k = 3)
# Apply blocking to the design with 3 blocks (1 block for star part and 2 blocks for the cube part)
blocking(fdo, 3)

Run the code above in your browser using DataLab