Learn R Programming

LHD (version 1.1.0)

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

Description

OA2LHD transfers an OA into an LHD with corresponding size

Usage

OA2LHD(OA)

Arguments

OA

A Matrix.

Value

If the input is logical, then the output will be an LHD whose sizes are the same as input OA.

Details

  • OA stands for the input 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
# NOT RUN {
#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