Learn R Programming

DiceDesign (version 1.10)

nolhdrDesign: De Rainville's Nearly Orthogonal Latin Hypercube Designs

Description

This function generates a NOLH design of dimension 2 to 29 and normalizes it to the selected range. From 2 to 7 input variables, the design is extracted from Cioppa's NOLHdesigns list and from 8 to 29 input variables it is extracted from De Rainville's NOLHDRdesigns list.

Usage

nolhdrDesign(dimension, range = c(0, 1))

Value

A list with components:

n

the number of lines/experiments

dimension

the number of columns/input variables

design

the design of experiments

Arguments

dimension

number of input variables

range

the scale (min and max) of the inputs. Range (0, 0) and (1, 1) are special cases and call integer ranges \((-m, m)\) and \((0, 2m)\). See the examples

Author

T.M. Cioppa and F.-M. De Rainville for the designs. P. Kiener for the R code.

See Also

De Rainville's list NOLHDRdesigns. Other NOLH or OLH designs: nolhDesign, olhDesign.

Examples

Run this code
## Classical normalizations
nolhdrDesign(8, range = c(1, 1))
nolhdrDesign(8, range = c(0, 1))
nolhdrDesign(8, range = c(0, 0))
nolhdrDesign(8, range = c(-1, 1))

## Change the dimnames, adjust to range (-10, 10) and round to 2 digits
xDRDN(nolhdrDesign(8), letter = "T", dgts = 2, range = c(-10, 10))

## A list of designs
lapply(5:9, function(n) nolhdrDesign(n, range = c(-1, 1))$design)

Run the code above in your browser using DataLab