MyNixOS website logo
Description

Multi-Objective Optimal Design of Experiments.

Provides functionality to generate compound optimal designs for targeting the multiple experimental objectives directly, ensuring that the full set of research questions is answered as economically as possible. Designs can be found using point or coordinate exchange algorithms combining estimation, inference and lack-of-fit criteria that account for model inadequacy. Details and examples are given by Koutra et al. (2024) <doi:10.48550/arXiv.2412.17158>.

MOODE

R-CMD-check

Multi-objective Optimal Design of experiments (MOODE) for targeting the experimental objectives directly, ensuring as such that the full set of research questions is answered as economically as possible.

Installation

Install from CRAN with:

install.packages("MOODE")

You can install the development version of MOODE from GitHub with:

# install.packages("devtools")
devtools::install_github("vkstats/MOODE")

Example

As a basic example, consider an experiment with K=2 factors, each having Levels = 3 levels. The primary (assumed) model contains first-order terms, and the potential model also contains squared terms. The experiment will have Nruns = 24 runs. An optimal compound design will be sought combining $DP_S$-, $LoF-D$- and $MSE(D)$-optimality; see Koutra et al. (2024). We define the parameters for this experiment using the mood function.

library("MOODE")
ex.mood <- mood(K = 2, Levels = 3, Nruns = 24, 
                model_terms = list(primary.terms = c("x1", "x2"), 
                                   potential.terms = c("x12", "x22")), 
                criterion.choice = "MSE.D", 
                kappa = list(kappa.DP = 1 / 3, kappa.LoF = 1 / 3, 
                             kappa.mse = 1 / 3))

The kappa list defines weights for each criterion, with $\kappa_i\ge 0$ and $\sum \kappa_i = 1$.

Optimal designs are found using a point exchange algorithm, via the Search function.

search.ex <- Search(ex.mood)
#> ✔ Design search complete. Final compound objective function value = 0.19732

The best design found is available as element X.design, ordered here by treatment number.

fd <- search.ex$X.design[order(search.ex$X1[, 1]),]
cbind(fd[1:12, ], fd[13:24, ])
#>       x1 x2 x1 x2
#>  [1,] -1 -1  0  0
#>  [2,] -1 -1  0  1
#>  [3,] -1 -1  0  1
#>  [4,] -1 -1  1 -1
#>  [5,] -1  0  1 -1
#>  [6,] -1  0  1 -1
#>  [7,] -1  1  1  0
#>  [8,] -1  1  1  0
#>  [9,] -1  1  1  1
#> [10,] -1  1  1  1
#> [11,]  0 -1  1  1
#> [12,]  0 -1  1  1

The path element records the compound objective function value from each of the (by default) 10 attempts of the algorithm from different random starting designs.

search.ex$path
#>  [1] 0.1979960 0.1971856 0.1979960 0.1990148 0.1974816 0.1979960 0.1971446
#>  [8] 0.1971591 0.1979960 0.1971569
Metadata

Version

1.0.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows