blocking: blocking: Blocking

blockingR Documentation

blocking: Blocking

Description

Blocks a given factorial or response surface design.

Usage

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

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.

Value

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

See Also

facDesign.

Examples

# 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)

r6qualitytools documentation built on Oct. 4, 2024, 1:09 a.m.