GreedyExperimentalDesign: Greedy Experimental Design Construction

Computes experimental designs for two-arm experiments with covariates using multiple methods, including: (0) complete randomization and randomization with forced-balance; (1) greedy optimization of a balance objective function via pairwise switching; (2) numerical optimization via 'gurobi'; (3) rerandomization; (4) Karp's method for one covariate; (5) exhaustive enumeration for small sample sizes; (6) binary pair matching using 'nbpMatching'; (7) binary pair matching plus method (1) to further optimize balance; (8) binary pair matching plus method (3) to further optimize balance; (9) Hadamard designs; and (10) simultaneous multiple kernels. For the greedy, rerandomization, and related methods, three objective functions are supported: Mahalanobis distance, standardized sums of absolute differences, and kernel distances via the 'kernlab' library. This package is the result of a stream of research that can be found in Krieger, A. M., Azriel, D. A., and Kapelner, A. (2019). "Nearly Random Designs with Greatly Improved Balance." Biometrika 106(3), 695-701 <doi:10.1093/biomet/asz026>. Krieger, A. M., Azriel, D. A., and Kapelner, A. (2023). "Better experimental design by hybridizing binary matching with imbalance optimization." Canadian Journal of Statistics, 51(1), 275-292 <doi:10.1002/cjs.11685>.

Version: 1.6
Depends: R (≥ 4.1.0), rJava (≥ 0.9-6)
Imports: Rcpp, checkmate, nbpMatching, rlist, stringr, stringi, kernlab, ggplot2, graphics, grDevices, stats
LinkingTo: Rcpp
Suggests: testthat (≥ 3.0.0), pkgload, R6
Published: 2026-01-09
DOI: 10.32614/CRAN.package.GreedyExperimentalDesign
Author: Adam Kapelner [aut, cre] (ORCID: 0000-0001-5985-6792), David Azriel [aut], Abba Krieger [aut]
Maintainer: Adam Kapelner <kapelner at qc.cuny.edu>
License: GPL-3
URL: https://github.com/kapelner/GreedyExperimentalDesign
NeedsCompilation: yes
SystemRequirements: Java (>= 7.0)
Materials: ChangeLog
CRAN checks: GreedyExperimentalDesign results

Documentation:

Reference manual: GreedyExperimentalDesign.html , GreedyExperimentalDesign.pdf

Downloads:

Package source: GreedyExperimentalDesign_1.6.tar.gz
Windows binaries: r-devel: GreedyExperimentalDesign_1.5.6.1.zip, r-release: GreedyExperimentalDesign_1.5.6.1.zip, r-oldrel: GreedyExperimentalDesign_1.5.6.1.zip
macOS binaries: r-release (arm64): GreedyExperimentalDesign_1.6.tgz, r-oldrel (arm64): GreedyExperimentalDesign_1.6.tgz, r-release (x86_64): GreedyExperimentalDesign_1.6.tgz, r-oldrel (x86_64): GreedyExperimentalDesign_1.6.tgz
Old sources: GreedyExperimentalDesign archive

Reverse dependencies:

Reverse depends: OptimalRerandExpDesigns

Linking:

Please use the canonical form https://CRAN.R-project.org/package=GreedyExperimentalDesign to link to this page.