The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

CRAN Task View: Design of Experiments (DoE) & Analysis of Experimental Data

Maintainer:Ulrike Groemping, Tyler Morgan-Wall
Contact:ulrike.groemping at bht-berlin.de
Version:2023-04-05
URL:https://CRAN.R-project.org/view=ExperimentalDesign
Source:https://github.com/cran-task-views/ExperimentalDesign/
Contributions:Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. For further details see the Contributing guide.
Citation:Ulrike Groemping, Tyler Morgan-Wall (2023). CRAN Task View: Design of Experiments (DoE) & Analysis of Experimental Data. Version 2023-04-05. URL https://CRAN.R-project.org/view=ExperimentalDesign.
Installation:The packages from this task view can be installed automatically using the ctv package. For example, ctv::install.views("ExperimentalDesign", coreOnly = TRUE) installs all the core packages or ctv::update.views("ExperimentalDesign") installs all packages that are not yet installed and up-to-date. See the CRAN Task View Initiative for more details.

This task view collects information on R packages for experimental design and analysis of data from experiments. Packages that focus on analysis only and do not make relevant contributions for design creation are not considered in the scope of this task view. Please feel free to suggest enhancements, and please send information on new packages or major package updates if you think they belong here, either via e-mail to the maintainers or by submitting an issue or pull request in the GitHub repository linked above.

Experimental design is applied in many areas, and methods have been tailored to the needs of various fields. This task view starts out with a section on the historically earliest application area, agricultural experimentation. Subsequently, it covers the most general packages, continues with specific sections on industrial experimentation, computer experiments, and experimentation in the clinical trials contexts (this section is going to be removed eventually; experimental design packages for clinical trials will be integrated into the clinical trials task view), and closes with a section on various special experimental design packages that have been developed for other specific purposes. Of course, the division into fields is not always clear-cut, and some packages from the more specialized sections can also be applied in general contexts.

You may also notice that the maintainers’ experience is mainly from industrial experimentation (in a broad sense), which may explain a somewhat biased view on things. Volunteers for co-maintaining are welcome.

Experimental designs for agricultural and plant breeding experiments

Package agricolae is by far the most-used package from this task view (status: October 2017). It offers extensive functionality on experimental design especially for agricultural and plant breeding experiments, which can also be useful for other purposes. It supports planning of lattice designs, factorial designs, randomized complete block designs, completely randomized designs, (Graeco-)Latin square designs, balanced incomplete block designs and alpha designs. There are also various analysis facilities for experimental data, e.g. treatment comparison procedures and several non-parametric tests, but also some quite specialized possibilities for specific types of experiments. Package desplot is made for plotting the layout of agricultural experiments. Package agridat offers a large repository of useful agricultural data sets.

Experimental designs for general purposes

There are a few packages for creating and analyzing experimental designs for general purposes: First of all, the standard (generalized) linear model functions in the base package stats are of course very important for analyzing data from designed experiments (especially functions lm(), aov() and the methods and functions for the resulting linear model objects). These are concisely explained in Kuhnert and Venables (2005, p. 109 ff.); Vikneswaran (2005) points out specific usages for experimental design (using function contrasts(), multiple comparison functions and some convenience functions like model.tables(), replications() and plot.design()). Lawson (2014) is a good introductory textbook on experimental design in R, which gives many example applications. Lalanne (2012) provides an R companion to the well-known book by Montgomery (2005); he so far covers approximately the first ten chapters; he does not include R’s design generation facilities, but mainly discusses the analysis of existing designs. Package GAD handles general balanced analysis of variance models with fixed and/or random effects and also nested effects (the latter can only be random); they quote Underwood (1997) for this work. The package is quite valuable, as many users have difficulties with using the R packages for handling random or mixed effects. Package ez aims at supporting intuitive analysis and visualization of factorial experiments based on package “ggplot2”.

Experimental designs for industrial experiments

Some further packages especially handle designs for industrial experiments that are often highly fractionated, intentionally confounded and have few extra degrees of freedom for error.

Fractional factorial 2-level designs are particularly important in industrial experimentation.

Apart from tools for planning and analysing factorial designs, R also offers support for response surface optimization for quantitative factors (cf. e.g. Myers and Montgomery 1995):

In some industries, mixtures of ingredients are important; these require special designs, because the quantitative factors have a fixed total. Mixture designs are handled by packages AlgDesign (function gen.mixture, lattice designs), lattice designs and simplex centroid designs), and mixexp (several small functions for simplex centroid, simplex lattice and extreme vertices designs as well as for plotting).

Occasionally, supersaturated designs can be useful. The two small packages mkssd and mxkssd provide fixed level and mixed level k-circulant supersaturated designs. The aforementioned package DoE.MIParray can also provide (small!) supersaturated arrays (by choosing resolution II), but requires the presence of at least one of the commercial optimizers Gurobi or Mosek .

Experimental designs for computer experiments

Computer experiments with quantitative factors require special types of experimental designs: it is often possible to include many different levels of the factors, and replication will usually not be beneficial. Also, the experimental region is often too large to assume that a linear or quadratic model adequately represents the phenomenon under investigation. Consequently, it is desirable to fill the experimental space with points as well as possible (space-filling designs) in such a way that each run provides additional information even if some factors turn out to be irrelevant. The lhs package provides latin hypercube designs for this purpose. Furthermore, the package provides ways to analyse such computer experiments with emphasis on what follow-up experiments to conduct. Another package with similar orientation is the DiceDesign package, which adds further ways to construct space-filling designs and some measures to assess the quality of designs for computer experiments. The package DiceKriging provides the kriging methodology which is often used for creating meta models from computer experiments, the package DiceEval creates and evaluates meta models (among others Kriging ones), and the package DiceView provides facilities for viewing sections of multidimensional meta models.

Package MaxPro provides maximum projection designs as introduced by Joseph, Gul and Ba(2015). Package SLHD provides optimal sliced latin hypercube designs according to Ba et al. (2015), package sFFLHD provides sliced full factorial-based latin hypercube designs according to Duan et al. (2017). Package simrel allows creation of designs for computer experiments according to the Multi-level binary replacement (MBR) strategy by Martens et al. (2010). Package minimaxdesign (archived) provides minimax designs and minimax projection designs according to Mak and Joseph (2016). Package SOAs provides stratum (aka strong) orthogonal arrays by various authors, as described in Grömping (2021) and references therein.

Package tgp is another package dedicated to planning and analysing computer experiments. Here, emphasis is on Bayesian methods. The package can for example be used with various kinds of (surrogate) models for sequential optimization, e.g. with an expected improvement criterion for optimizing a noisy blackbox target function. Packages plgp and dynaTree enhance the functionality offered by tgp with particle learning facilities and learning for dynamic regression trees.

Package BatchExperiments is also designed for computer experiments, in this case specifically for experiments with algorithms to be run under different scenarios. The package is described in a technical report by Bischl et al. (2012).

Experimental designs for clinical trials

This task view only covers specific design of experiments packages (which will eventually also be removed here); there may be some grey areas. Please, also consult the ClinicalTrials task view.

Experimental designs for special purposes

Various further packages handle special situations in experimental design:

Key references for packages in this task view

CRAN packages

Core:agricolae, AlgDesign, conf.design, crossdes, DoE.base, DoE.wrapper, FrF2, rsm, skpr.
Regular:acebayes, agridat, ALTopt, asd, BatchExperiments, bcrm, BHH2, binseqtest, blocksdesign, BOIN, BsMD, choiceDes, CombinS, crmPack, Crossover, dae, daewr, designmatch, desirability, desplot, dfcomb, dfcrm, dfmta, DiceDesign, DiceEval, DiceKriging, DiceView, docopulae, DoE.MIParray, DoseFinding, dynaTree, easypower, EngrExpt, experiment, ez, FMC, FrF2.catlg128, GAD, geospt, GroupSeq, gsDesign, ibd, ICAOD, idefix, JMdesign, lhs, MAMS, MaxPro, MBHdesign, minimalRSD, mixexp, mkssd, mxkssd, OBsMD, odr, OPDOE, optbdmaeAT, OptGS, OptimalDesign, OptimaRegion, optrcdmaeAT, osDesign, PBIBD, PGM2, ph2bayes, ph2bye, pid, pipe.design, plgp, PopED, powerbydesign, powerGWASinteraction, PwrGSD, RcmdrPlugin.DoE, rodd, RPPairwiseDesign, rsurface, SensoMineR, seqDesign, sFFLHD, simrel, SLHD, SOAs, soptdmaeA, sp23design, ssize.fdr, ssizeRNA, support.CEs, TEQR, tgp, unrepx, vdg.
Archived:blockTools, minimaxdesign, ThreeArmedTrials.

Related links

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.