CS_CMMSSY: Strength 2 CAs constructed by cover starters (CMMSSY)

View source: R/CS_CMMSSY.R

CS_CMMSSYR Documentation

Strength 2 CAs constructed by cover starters (CMMSSY)

Description

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

Usage

CS_CMMSSY(k, v, start0=TRUE, starter=NULL, ...)

N_CS_CMMSSY(t=2, k, v, theoretical=FALSE)

k_CS_CMMSSY(N, v)

Arguments

k

number of factors

v

number of levels, v >= 3

start0

should the output design's levels start with zero (default) or 1?

starter

an optional cover starter vector that starts with Inf.
This may be useful for cases with k larger than implemented in the stored cover starters.
CAUTION: Responsibility for achieving the coverage rests with the user, please check!

...

currently not used

t

requested strength (has to be 2)

theoretical

logical: default requests size available from using stored cover starters,
change to TRUE for the size assuming existence of a cover starter for k and v

N

affordable number of runs

Value

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.

Details

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

References

Colbourn (2004), Colbourn et al. (2006)

Examples

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


CAs documentation built on Nov. 29, 2026, 1:06 a.m.