Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

factDesign

Full Factorial Designs


Description

Create a factorial design with n = pow(levels,dimension) experiments in [0,1]^d.

Usage

factDesign(dimension, levels)

Arguments

dimension

an integer given the number of input variables

levels

an integer given the number of levels

Details

It is possible to take a different number of levels for any factor. In this case, the argument levels should be a vector.

Value

factDesign returns a list containing all the input arguments detailed before, plus the following components:

n

the number of experiments

design

the design of experiments

Author(s)

G. Pujol and J. Franco

Examples

## First example
g1 <- factDesign(2, 7)
plot(g1$design, xlim=c(0,1), ylim=c(0,1))

## Second example
g2 <- factDesign(2, c(2,7))
plot(g2$design, xlim=c(0,1), ylim=c(0,1))

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

DiceDesign

Designs of Computer Experiments

v1.9
GPL-3
Authors
Jessica Franco, Delphine Dupuy, Olivier Roustant, Patrice Kiener, Guillaume Damblin and Bertrand Iooss.
Initial release
2021-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.