MatchIt: Nonparametric Preprocessing for Parametric Causal Inference

Selects matched samples of the original treated and control groups with similar covariate distributions – can be used to match exactly on covariates, to match on propensity scores, or perform a variety of other matching procedures. The package also implements a series of recommendations offered in Ho, Imai, King, and Stuart (2007) <doi:10.1093/pan/mpl013>. (The 'gurobi' package, which is not on CRAN, is optional and comes with an installation of the Gurobi Optimizer, available at <>.)

Version: 4.5.5
Depends: R (≥ 3.5.0)
Imports: backports (≥ 1.1.9), chk (≥ 0.8.1), rlang (≥ 1.1.0), Rcpp, utils, stats, graphics
LinkingTo: Rcpp, RcppProgress
Suggests: optmatch (≥ 0.10.6), Matching, rgenoud, quickmatch (≥ 0.2.1), nnet, rpart, mgcv, CBPS (≥ 0.17), dbarts, randomForest (≥ 4.7-1), glmnet (≥ 4.0), gbm (≥ 2.1.7), cobalt (≥ 4.2.3), boot, marginaleffects (≥ 0.11.0), sandwich (≥ 2.5-1), survival, RcppProgress (≥ 0.4.2), highs, Rglpk, Rsymphony, gurobi, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2023-10-13
DOI: 10.32614/CRAN.package.MatchIt
Author: Daniel Ho ORCID iD [aut], Kosuke Imai ORCID iD [aut], Gary King ORCID iD [aut], Elizabeth Stuart ORCID iD [aut], Alex Whitworth [ctb], Noah Greifer ORCID iD [cre, aut]
Maintainer: Noah Greifer <noah.greifer at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: yes
Citation: MatchIt citation info
Materials: NEWS
In views: CausalInference, OfficialStatistics
CRAN checks: MatchIt results


Reference manual: MatchIt.pdf
Vignettes: MatchIt: Getting Started
Assessing Balance
Estimating Effects After Matching
Matching Methods
Matching with Sampling Weights


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

Reverse dependencies:

Reverse depends: CBPS
Reverse imports: causalBatch, cem, EpiForsk, jsmodule, MatchThem, netdiffuseR, PSAboot, psBayesborrow, psborrow, RCTrep, sitepickR
Reverse suggests: clarify, cobalt, jointVIP, lmw, marginaleffects, psborrow2, sim.BA, table1, tidysmd


Please use the canonical form to link to this page.