Learn R Programming

LHD (version 1.3.0)

OLHD2009: Orthogonal Latin Hypercube Design

Description

OLHD2009 returns an orthogonal Latin hypercube design generated by the construction method of Lin et al. (2009)

Usage

OLHD2009(OLHD, OA)

Arguments

OLHD

An orthogonal Latin hypercube design with run size n and factor size p, and it will be coupled with the input orthogonal array.

OA

An orthogonal array, with n^2 rows, 2f columns, n symbols, strength two and index unity is available, which can be denoted as OA(n^2,2f,n,2).

Value

If all inputs are logical, e,g. a n by p orthogonal Latin hypercube design and an OA(n^2,2f,n,2) orthogonal array, then the output will be an orthogonal Latin hypercube design with the following run size: n^2 and the following factor size: 2fp.

References

Lin, C.D., Mukerjee, R., and Tang, B. (2009) Construction of orthogonal and nearly orthogonal Latin hypercubes. Biometrika, 96(1), 243-247.

Examples

Run this code
# NOT RUN {
#create a 5 by 2 OLHD
OLHD=OLHD2007(m=2)

#create an OA(25,6,5,2)
OA=matrix(c(2,2,2,2,2,1,2,1,5,4,3,5,3,2,1,5,4,5,1,5,4,3,2,5,
4,1,3,5,2,3,1,2,3,4,5,2,1,3,5,2,4,3,1,1,1,1,1,1,4,3,2,1,5,5,
5,5,5,5,5,1,4,4,4,4,4,1,3,1,4,2,5,4,3,3,3,3,3,1,3,5,2,4,1,3,
3,4,5,1,2,2,5,4,3,2,1,5,2,3,4,5,1,2,2,5,3,1,4,4,1,4,2,5,3,4,
4,2,5,3,1,4,2,4,1,3,5,3,5,3,1,4,2,4,5,2,4,1,3,3,5,1,2,3,4,2,
4,5,1,2,3,2),ncol=6,nrow=25,byrow=TRUE)

#Construct a 25 by 12 OLHD
OLHD2009(OLHD,OA)

# }

Run the code above in your browser using DataLab