OLHD.L2009: Orthogonal Latin Hypercube Design

Description Usage Arguments Value References Examples

View source: R/OLHD.L2009.R

Description

OLHD.L2009 returns a n^2 by 2fp orthogonal Latin hypercube design generated by the construction method of Lin et al. (2009)

Usage

1
OLHD.L2009(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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#create a 5 by 2 OLHD
OLHD=OLHD.C2007(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
OLHD.L2009(OLHD,OA)

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