LHD (version 1.1.0)

rLHD: Generate a random Latin Hypercube Design (LHD)

Description

rLHD returns an Latin hypercube design matrix with user-defined dimention

Usage

rLHD(n, k)

Arguments

n

A positive integer.

k

A positive integer.

Value

If all inputs are positive integer, then the output will be a n by k design matrix.

Details

  • n stands for the number of rows (or run size).

  • k stands for the number of columns (or the number of factors).

Examples

Run this code
# NOT RUN {
#create a toy LHD with 5 rows and 3 columns
toy=rLHD(n=5,k=3);toy

#another example with 9 rows and 2 columns
rLHD(9,2)
# }

Run the code above in your browser using DataLab