Greedy Experimental Design Construction

Computes experimental designs for a two-arm experiment with covariates via a number of methods. (0) complete randomization and randomization with forced-balance. (1) Greedily optimizing a balance objective function via pairwise switching. This optimization provides lower variance for the treatment effect estimator (and higher power) while preserving a design that is close to complete randomization. We return all iterations of the designs for use in a permutation test. (2) The second is via numerical optimization (via 'gurobi' which must be installed, see <>) a la Bertsimas and Kallus. (3) rerandomization, (4) Karp's method for one covariate, (5) exhaustive enumeration to find the optimal solution (only for small sample sizes) (6) Binary pair matching using the 'nbpMatching' library (7) Binary pair matching plus (1) to further optimize balance (8) Binary pair matching plus (3) to further optimize balance (9) Hadamard designs We also allow for three objective functions: Mahalanobis distance, Sum of absolute differences standardized and Kernel distances via the 'kernlab' library.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.4 by Adam Kapelner, a year ago

Browse source code at

Authors: Adam Kapelner , David Azriel and Abba M. Krieger

Documentation:   PDF Manual  

GPL-3 license

Imports Rcpp, checkmate, nbpMatching, survey, kernlab, graphics, grDevices, stats

Depends on rJava, GreedyExperimentalDesignJARs

Linking to Rcpp

System requirements: Java (>= 7.0)

Depended on by OptimalRerandExpDesigns.

See at CRAN