Learn R Programming

MOLHD (version 0.2)

LHD: Generate a random Latin Hypercube design

Description

Generate a random Latin Hypercube design

Usage

LHD(n, p)

Arguments

n

number of runs desired

p

number of design factors

Value

design

a Latin Hypercube Design that is not scaled (i.e. the grid point locations are integers)

standDesign

a standard Latin Hypercube Design that is scaled to (0,1); design locaitons are placed at the centers of selected grids.

Examples

Run this code
# NOT RUN {
#Generate a random Latin hypercube design with 20 runs and 2 variables
D<-LHD(n = 20,p = 2)
D$design
D$standDesign
# }

Run the code above in your browser using DataLab