Y <- randomLHS(10, 5)
Z <- augmentLHS(Y, 2)
dim(Z)
## [1] 12 5
Build an orthogonal array LHS:
# a 9 row design is returned because a 10 row design is not possible with these algorithms
W9 <- create_oalhs(10, 3, bChooseLargerDesign = FALSE, bverbose = FALSE)
dim(W9)
## [1] 9 3
# a 16 row design is returned because a 10 row design is not possible with these algorithms
W16 <- create_oalhs(10, 3, bChooseLargerDesign = TRUE, bverbose = FALSE)
dim(W16)
lhs
lhsprovides a number of methods for creating and augmenting Latin Hypercube Samples and Orthogonal Array Latin Hypercube Samples.Installation
You can install the released version of
lhsfrom CRAN with:You can also install the development version of
lhsfrom github with:Quick Start
Create a random LHS with 10 samples and 3 variables:
Create a design that is more optimal than the random case:
Augment an existing design:
Build an orthogonal array LHS:
Help
R-Help Examples of using the LHS package
StackExchange Examples:
Other
lhs package announcement: R-pkgs New R-Packages: Triangle and LHS