designmatch: Matched Samples that are Balanced and Representative by Design

Includes functions for the construction of matched samples that are balanced and representative by design. Among others, these functions can be used for matching in observational studies with treated and control units, with cases and controls, in related settings with instrumental variables, and in discontinuity designs. Also, they can be used for the design of randomized experiments, for example, for matching before randomization. By default, 'designmatch' uses the 'highs' optimization solver, but its performance is greatly enhanced by the 'Gurobi' optimization solver and its associated R interface. For their installation, please follow the instructions at <https://www.gurobi.com/getting-started/> and <https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html>. We have also included directions in the gurobi_installation file in the inst folder.

Version: 0.5.5
Depends: R (≥ 4.4.0)
Imports: MASS, slam, highs (≥ 1.12.0), stats, graphics
Suggests: gurobi, Rcplex, Rglpk, Rmosek, Rsymphony
Published: 2026-02-20
DOI: 10.32614/CRAN.package.designmatch
Author: Jose R. Zubizarreta ORCID iD [aut, cre], Cinar Kilcioglu [aut], Juan P. Vielma [aut], Eric R. Cohn [aut], Noah Greifer ORCID iD [ctb]
Maintainer: Jose R. Zubizarreta <zubizarreta at hcp.med.harvard.edu>
BugReports: https://github.com/jrzubizarreta/designmatch/issues
License: GPL-2 | GPL-3
URL: https://github.com/jrzubizarreta/designmatch
NeedsCompilation: no
Materials: NEWS
CRAN checks: designmatch results

Documentation:

Reference manual: designmatch.html , designmatch.pdf

Downloads:

Package source: designmatch_0.5.5.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): designmatch_0.5.5.tgz, r-oldrel (arm64): designmatch_0.5.5.tgz, r-release (x86_64): not available, r-oldrel (x86_64): not available
Old sources: designmatch archive

Linking:

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