blocking | R Documentation |
Blocks a given factorial or response surface design.
blocking(fdo, blocks, random.seed, useTable = "rsm", gen)
fdo |
An object of class |
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:
|
gen |
Giving the generator that will be used. |
The function blocking
returns an object of class facDesign.c
with blocking structure.
facDesign
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.