Learn R Programming

LHD (version 1.4.1)

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

Description

OA2LHD transfers an OA into an LHD with corresponding size

Usage

OA2LHD(OA)

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.

Arguments

OA

An orthogonal array matrix.

References

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

Examples

Run this code
#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

Run the code above in your browser using DataLab