GreedyExperimentalDesign

Greedy Experimental Design Construction

CRAN Package

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 https://www.gurobi.com/documentation/9.1/quickstart_windows/r_ins_the_r_package.html) 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 design number (1) to further optimize balance, (8) Binary pair matching plus design number (3) to further optimize balance, (9) Hadamard designs, (10) Simultaneous Multiple Kernels. In (1-9) we allow for three objective functions: Mahalanobis distance, Sum of absolute differences standardized and Kernel distances via the 'kernlab' library. This package is the result of a stream of research that can be found in Krieger, A, Azriel, D and Kapelner, A "Nearly Random Designs with Greatly Improved Balance" (2016) doi:10.48550/arXiv.1612.02315, Krieger, A, Azriel, D and Kapelner, A "Better Experimental Design by Hybridizing Binary Matching with Imbalance Optimization" (2021) doi:10.48550/arXiv.2012.03330.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 228 times in the last 30 days. Enough downloads to make a small wave in the niche community. The curiosity is spreading! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 7 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
5 downloadsMar 3, 2025
15 downloadsMar 4, 2025
21 downloadsMar 5, 2025
3 downloadsMar 6, 2025
3 downloadsMar 7, 2025
7 downloadsMar 8, 2025
2 downloadsMar 9, 2025
2 downloadsMar 10, 2025
10 downloadsMar 11, 2025
8 downloadsMar 12, 2025
8 downloadsMar 13, 2025
10 downloadsMar 14, 2025
17 downloadsMar 15, 2025
1 downloadsMar 16, 2025
4 downloadsMar 17, 2025
9 downloadsMar 18, 2025
7 downloadsMar 19, 2025
12 downloadsMar 20, 2025
9 downloadsMar 21, 2025
4 downloadsMar 22, 2025
6 downloadsMar 23, 2025
10 downloadsMar 24, 2025
7 downloadsMar 25, 2025
3 downloadsMar 26, 2025
4 downloadsMar 27, 2025
20 downloadsMar 28, 2025
8 downloadsMar 29, 2025
4 downloadsMar 30, 2025
2 downloadsMar 31, 2025
7 downloadsApr 1, 2025
0 downloadsApr 2, 2025
0 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
1
21

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 3,319 times in the last 365 days. Consider this 'mid-tier influencer' status—if it were a TikTok, it would get a nod from nieces and nephews. The day with the most downloads was Sep 11, 2024 with 46 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Imports8 packages
  • Linking To1 package
  • Reverse Depends1 package