makecatlg | R Documentation |
creates a class catlg catalogue with a single element for use in functions colpick or FrF2
makecatlg(k, gen)
k |
number of base factors spanning a full factorial with the desired number of runs |
gen |
generators as a numeric vector of Yates column numbers |
If generators are available in a different format, they must be transformed to Yates column numbers.
For a character vector genc
with elements like ABC
, ADE
, etc.,
a code for obtaining Yates columns with order preserved is
sapply(1:length(genc), function(obj) which(names(Yates)==genc[obj]))
(a solution with which
applied to the entire vector at once does not preserve the order).
Yet different formats like 123
, 145
, etc., can e.g.
be preprocessed by picking the suitable elements from Letters
, e.g.
paste(Letters[as.numeric(unlist(strsplit("123","")))],collapse="")
.
The function returns a list of class catlg
with a single element.
This package is still under development, but does already provide useful and well-tested results.
Ulrike Groemping
See also FrF2
## Xu's fraction 13-5.2
genXu <- c(127, 143, 179, 85, 150)
catXu <- makecatlg(k=8, genXu)
colpick(catXu, q=2) ## Godolphin blocking into blocks of size 4 yields 56 clear 2fis
FrF2(256, 13, blocks=64, alias.block.2fis=TRUE, select.catlg=catXu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.