Description Usage Arguments Details Value Side Effects See Also Examples

Constructs the direct sum of two or more designs. Each plot of one design is matched with every plot of the other. (This might also be called the Cartesian product of two designs).

1 | ```
direct.sum(D1, ..., tiebreak=letters)
``` |

`D1` |
First component design. |

`...` |
Additional component designs, if any. |

`tiebreak` |
Series of characters or digits to be used for breaking ties (or repeats) in the variable names in the component designs. Augmented if necessary. |

Each plot of one design is matched with every plot of the next, (if any), and so on recursively.

The direct sum of all component designs.

None.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ```
### Generate a half replicate of a 2^3 x 3^2 experiment. The factors are
### to be A, B, C, D, E. The fractional relation is to be I = ABC and the
### DE effect is to be confounded with blocks.
### First construct the 2^3 design, confounded in two blocks:
d1 <- conf.design(cbind(A = 1, B = 1, C = 1), p = 2)
### Next the 3^2 design, with DE partially confounded in blocks:
d2 <- conf.design(cbind(D = 1, E = 1), p = 3)
### Now extract the principal block from the 2^3 design and form the direct
### sum withthe 3^2 design
dsn <- direct.sum(subset(d1, Blocks == "0"), d2)
### combine block factors into one
dsn <- within(dsn, {
Blocks <- join(Blocks, Blocksa)
Blocksa <- NULL
})
head(dsn)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.