KSK: function for optimal 2-level CAs of strength 2

View source: R/KSK.R

N_KSKR Documentation

function for optimal 2-level CAs of strength 2

Description

implements the construction by Kleitman and Spencer (1973) and Katona (1973), which have optimal size

Usage

KSK(k=NULL, N=NULL)

k_KSK(N)

N_KSK(k)

Arguments

k

number of columns

N

number of runs

Value

KSK returns a matrix of class ca with k columns and N runs and levels 0 and 1 in each column, with coverage strength 2.

N_KSK and k_KSK return the minimum N for a given k or the maximum k for a given N, respectively.

Examples

## smallest design for 10 columns
KSK(k=10)
## largest design for 6 rows
ca6.2.10.2 <- KSK(N=6)
coverage(ca6.2.10.2, 2)
coverage(ca6.2.10.2, 3)
## largest k for 10 rows
k_KSK(10)
## smallest N for 2800 columns
N_KSK(2800)
## design for 8 columns in 6 rows (not necessarily best subset of columns)
KSK(8,6)
## design for 2 columns (full factorial needed)
KSK(2)


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