OA2LHD: Transfer an Orthogonal Array (OA) into an LHD

Description Usage Arguments Value References Examples

View source: R/OA2LHD.R

Description

OA2LHD transfers an OA into an LHD with corresponding size

Usage

1
OA2LHD(OA)

Arguments

OA

An orthogonal array matrix.

Value

If the input is logical, then the output will be an LHD whose sizes are the same as input OA. The assumption is that the elements of OAs must be positive.

References

Tang, B. (1993) Orthogonal-array-based latin hypercubes. Journal of the Americal Statistical Association, 88, 1392-1397.

Examples

1
2
3
4
5
6
#create an OA(9,2,3,2)
OA=matrix(c(rep(1:3,each=3),rep(1:3,times=3)),ncol=2,nrow=9,byrow = FALSE);OA

#Transfer the "OA" above into a LHD according to Tang (1993)
tryOA=OA2LHD(OA)
OA;tryOA

LHD documentation built on Aug. 1, 2021, 1:06 a.m.