miscCA: Incorporate miscellaneous arrays

View source: R/miscCA.R

miscCAR Documentation

Incorporate miscellaneous arrays

Description

incorporates miscellaneous arrays that are created in the package or obtained from package DoE.base

Usage

miscCA(t, k, v, fixNA=TRUE, seed=NULL, maxconstant=FALSE, makePCA=FALSE, ...)

Arguments

t

integer: the strength

k

integer: the number of columns

v

integer: the number of levels for each column

fixNA

logical: should flexible values be fixed?
If the array has flexible values, fixNA=TRUE randomly assigns a fixed value to each flexible value.
Thus, a seed is needed for reproducibility.

seed

NULL or an integer seed for making the fixing of NA values reproducible; a non-NULL seed is stored in the attribute fixNA_seed of the returned object.

maxconstant

logical: should constant rows be maximized ?
ignored for internal arrays, applied for arrays loaded from package DoE.base only; per default, the array is not modified and may not even have a single constant row

makePCA

logical: should a PCA structure be enforced ?
ignored for internal arrays, applied for arrays loaded from package DoE.base only
If both makePCA and maxconstant are TRUE, maxconstant takes precedence.

...

currently not used

Value

an array of class ca with attributes

Details

The function relies on the data frame miscCAcat for a description of the available CAs.

References

Ji and Yin (2010), Colbourn and Torres-Jimenez (2013), Kuhfeld (w/o year), DoE.base

Examples

# a CA (without flexible values) from DoE.base
miscCA(3, 5, 4)

## without making rows constant and without enforcing PCA
attributes(miscCA(3, 5, 4, maxconstant=FALSE))

# a CA that is internally stored
# it has a single flexible value, which is per default fixed
# the seed makes the fixing reproducible
attributes(D <- miscCA(2, 14, 4, seed=374))
Ns(2,14,4)  ## best possible


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