Learn R Programming

⚠️There's a newer version (1.2.0) of this package.Take me there.

lhs

This package provides a number of methods for creating and augmenting Latin Hypercube Samples

Linux & MacOSWindowsCode CoverageCRAN DownloadsCRAN

Visit the webpage here

See the Doxygen documentation here

Installation

You can install the released version of lhs from CRAN with:

install.packages("lhs")

You can also install the development version of lhs from here with:

# (if not done already:)  install.packages("devtools")
devtools::install_github("bertcarnell/lhs")

Example

Create a random LHS with 10 samples and 3 variables

X <- randomLHS(10, 3)

Development

The reverse dependency checks for lhs can be found here.

Help

R-Help Examples of using the LHS package

Other

lhs package announcement: R-pkgs New R-Packages: Triangle and LHS

Copy Link

Version

Install

install.packages('lhs')

Monthly Downloads

34,075

Version

1.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Rob Carnell

Last Published

February 3rd, 2019

Functions in lhs (1.0.1)

createAddelKemp

Create an orthogonal array using the Addelman-Kempthorne algorithm
createBoseBush

Create an orthogonal array using the Bose-Bush algorithm
lhs-package

lhs: Latin Hypercube Samples
createBoseBushl

Create an orthogonal array using the Bose-Bush algorithm with alternate strength >= 3
geneticLHS

Latin Hypercube Sampling with a Genetic Algorithm
createAddelKempN

Create an orthogonal array using the Addelman-Kempthorne algorithm with alternate strength
createBush

Create an orthogonal array using the Bush algorithm
randomLHS

Construct a random Latin hypercube design
optSeededLHS

Optimum Seeded Latin Hypercube Sample
optimumLHS

Optimum Latin Hypercube Sample
maximinLHS

Maximin Latin Hypercube Sample
runifint

Create a Random Sample of Uniform Integers
oa_to_oalhs

Create a Latin hypercube from an orthogonal array
optAugmentLHS

Optimal Augmented Latin Hypercube Sample
improvedLHS

Improved Latin Hypercube Sample
createBose

Create an orthogonal array using the Bose algorithm
createAddelKemp3

Create an orthogonal array using the Addelman-Kempthorne algorithm with 2*q^3 rows
createBusht

Create an orthogonal array using the Bush algorithm with alternate strength
create_oalhs

Create an orthogonal array Latin hypercube
augmentLHS

Augment a Latin Hypercube Design