Skip to content

GreedyExperimentalDesign

1.6.1Package record

Greedy Experimental Design Construction

1packages depend
5.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Install

Health

CRAN checks
13OK
Slowest check: 5.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-10-24
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
  • NOTE11 OK, 2 NOTE2026-05-01
  • OK14 OK2026-04-22
Show 4 earlier changesHide 4 earlier changes
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-04-06
  • ERROR13 OK, 1 ERROR2026-04-04
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.6.1
READMENoVignettesNoNEWSNoCitation fileNo
Help pages
74
Examples that run
0%45 never run
Exported functions with examples
85%
Documented parameters
100%
Return-value docs
68%
Help pages citing references
1%

Downloads

5.9K
CRAN downloads in the past year
Rank #7,216 · ~16/day · ~494/mo
Daily download trend is not available in this view yet.
41730 days
1.2K90 days
5.9K1 year
Compare downloads with other packages →
Also on397 r2u7 autocran

Repository

0Stars
2Forks
0Open issues
0Open PRs
1Releases
212Commits
4Commit identities
212 commits · Last activity 2026-09-03
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
444
Median days to close, 50 most recently updated closed PRs
0

Forks over time

2020-03-09 · 22026-07-07 · 2
PracticesBeta

4 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/kapelner/greedyexperimentaldesign on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (2)

GitHub Pages site last deployed 2026-09-03 · The repository has a site deploy workflow

How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Codexfirst seen 2026-04-27
    Named in .gitignore: .codex
  • Claude Codefirst seen 2026-04-30
    Named in .gitignore: .claude
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Fable 5.12 commits · Sep 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing GreedyExperimentalDesign adds 57 packages (31 with compiled code, 56 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (2)
R >= 4.1.0rJava
LinkingTo (1)
Suggests (3)
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Depends 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer since 1.0 (2016)
Author · added in 1.5
Listed in earlier versions (1)
no longer listed · 1.0 to 1.4
Releases (9)

Pick two releases to compare their code metrics.

  • 1.6.1Latest
    record
    2026-04-30 · current release · diff ↗ ·
    added 8 exports
    compute_distance_matrix_gpu, compute_kernel_matrix_gpu, compute_multiple_kernel_objective_vals_gpu, compute_objective_vals_gpu, compute_randomization_metrics_gpu, full_greedy_search_gpu, ged_gpu_available, ged_gpu_devices
  • R
    R 4.6.0 released · 2026-04-24
  • 1.6
    record
    2026-01-09 · diff ↗ ·
    removed 3 exports
    initBinaryMatchExperimentalDesignSearch, initBinaryMatchFollowedByGreedyExperimentalDesignSearch, initBinaryMatchFollowedByRerandomizationDesignSearch
    added 13 exports
    all_elements_same_cpp_wrap, compute_distance_matrix_cpp_wrap, create_all_ys_cpp_wrap, gen_pm_designs_cpp_wrap, gen_var_cov_matrix_block_designs, generate_block_design_cpp_wrap, initBinaryMatchExperimentalDesignSearchObject, initBinaryMatchFollowedByGreedyExperimentalDesignSearchObject, initBinaryMatchFollowedByRerandomizationDesignSearchObject, initGurobiNumericalOptimizationExperimentalDesignObject, resultsGurobiNumericalOptimizeSearch, safe_cov_inverse, shuffle_cpp_wrap
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.5.6.1
    record
    2023-07-12 · diff ↗ ·
    added 3 exports
    imbalanced_block_designs, imbalanced_complete_randomization, optimize_asymmetric_treatment_assignment
  • R
    R 4.3.0 released · 2023-04-21
  • 1.5.5
    record
    2022-11-17 · diff ↗ ·
    added 1 export
    computeBinaryMatchStructure
  • 1.5
    record
    2022-11-04 · diff ↗ ·
    removed 3 exports
    binaryMatchExperimentalDesignSearch, binaryMatchFollowedByGreedyExperimentalDesignSearch, binaryMatchFollowedByRerandomizationDesignSearch
    added 5 exports
    initBinaryMatchExperimentalDesignSearch, initBinaryMatchFollowedByGreedyExperimentalDesignSearch, initBinaryMatchFollowedByRerandomizationDesignSearch, initGreedyMultipleKernelExperimentalDesignObject, resultsMultipleKernelGreedySearch
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4
    record
    2020-12-07 · diff ↗ ·
    removed 4 exports
    complete_randomization_with_balanced_ns, gurobi_multiple_designs, initGurobiNumericalOptimizationExperimentalDesignObject, resultsGurobiNumericalOptimizeExperimentalDesign
    added 12 exports
    binaryMatchExperimentalDesignSearch, binaryMatchFollowedByGreedyExperimentalDesignSearch, binaryMatchFollowedByRerandomizationDesignSearch, complete_randomization_with_forced_balanced, compute_gram_matrix, greedy_orthogonalization_curation, greedy_orthogonalization_curation2, hadamardExperimentalDesign, resultsBinaryMatchSearch, resultsBinaryMatchThenGreedySearch, resultsBinaryMatchThenRerandomizationSearch, standardize_data_matrix
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • unarchivedReturned to CRAN
    2018-07-15
  • 1.2
    record
    2018-07-15 · diff ↗ ·
    added 4 exports
    complete_randomization_with_balanced_ns, gurobi_multiple_designs, initGurobiNumericalOptimizationExperimentalDesignObject, resultsGurobiNumericalOptimizeExperimentalDesign
Show 6 earlier eventsHide 6 earlier events
  • archivedRemoved from CRAN
    2018-05-27
    installation errors with Java 10 were not corrected despite reminders
  • R
    R 3.5.0 released · 2018-04-23
  • 1.1
    record
    2018-03-02 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0
    record
    2016-12-08
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-12-08
Total releases
9 / 10 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Download size
166 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("GreedyExperimentalDesign")
Kapelner, A., Azriel, D., & Krieger, A. (2026). GreedyExperimentalDesign: Greedy Experimental Design Construction (Version 1.6.1) [Computer software]. https://doi.org/10.32614/CRAN.package.GreedyExperimentalDesign

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for GreedyExperimentalDesign version 1.6.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy