| CS_CMMSSY | R Documentation |
Function to construct a strength 2 CA based on cover starters according to Colbourn et al. 2006. k and v must be specified, the number of runs is ((v-1)*k+1) (possibly for a larger value of k if the construction does not exist for the requested k); recursive constructions based on such arrays are also included
CS_CMMSSY(k, v, start0=TRUE, starter=NULL, ...)
N_CS_CMMSSY(t=2, k, v, theoretical=FALSE)
k_CS_CMMSSY(N, v)
k |
number of factors |
v |
number of levels, |
start0 |
should the output design's levels start with zero (default) or 1? |
starter |
an optional cover starter vector that starts with |
... |
currently not used |
t |
requested strength (has to be 2) |
theoretical |
logical: default requests size available from using stored cover starters, |
N |
affordable number of runs |
CS_MMSSY returns the smallest possible strength 2 CA from the Colbourn et al. (2006) construction for k experimental factors in v levels; it is an N x k matrix with entries from 0 to v-1 or from 1 to v, depending on start0.
N_CS_MMSSY returns the minimum run size needed for the CMMSSY construction with k factors at v levels, or NA, if no such construction exists.
k_CS_MMSSY returns the maximum number of v-level factors that can be accommodated in at most N runs, or NA, if no such construction exists.
Colbourn et al. (2006) denote designs with the factors as the columns and the runs as the rows, like in this package, and contrary to Meagher and Stevens (2005).
The construction uses a distinct starter vectors of k elements with first element Inf (fixed position)
and subsequent elements from 1 to v-1.
The starter vector is cycled into a k x k matrix M (internal function circular),
which is one key ingredient of the construction. The other key ingredient is addition modulo v-1.
Finally, the infinite element is set to v-1.
Functions N_CS_CMMSSY and k_CS_MMSSY return the minimum N or the maximum
k for the requested scenario. In case of N_CS_MMSSY, the default to use the
available starters can be overridden by the argument theoretical, which allows
to inspect how many runs can be obtained by a suitable user-specified starter vector.
Besides the starters from Colbourn et al. (2006), the function also returns arrays that
are obtained by combining pairs, triples or quadruples of such arrays,
using function productPCA, once (for pairs) or repeatedly.
It would be possible to drive this further, but the function stops at quadruples.
Such an approach was proposed for these distinct starters in Colbourn (2004), who also provided
a smaller selection of starter vectors. (The approach is analogous to recBoseCA.)
Colbourn (2004), Colbourn et al. (2006)
## mini example of Colbourn et al. (2006)
k <- 7; v <- 5
starter <- c(Inf, 0, 0, 1, 3, 2)
CS_CMMSSY(7, 5, starter=starter) ## 29 runs, 7 columns
CS_CMMSSY(9, 6) ## 46 rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.