Learn R Programming

lhs (version 1.2.0)

oa_to_oalhs: Create a Latin hypercube from an orthogonal array

Description

Create a Latin hypercube from an orthogonal array

Usage

oa_to_oalhs(n, k, oa)

Value

a numeric matrix which is a Latin hypercube sample

Arguments

n

the number of samples or rows in the LHS (integer)

k

the number of parameters or columns in the LHS (integer)

oa

the orthogonal array to be used as the basis for the LHS (matrix of integers) or data.frame of factors

Examples

Run this code
oa <- createBose(3, 4, TRUE)
B <- oa_to_oalhs(9, 4, oa)

Run the code above in your browser using DataLab