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.4
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), Rglpk, Rsymphony, gurobi, knitr, rmarkdown
Published: 2023-06-14
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.4.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): MatchIt_4.5.4.tgz, r-oldrel (arm64): MatchIt_4.5.4.tgz, r-release (x86_64): MatchIt_4.5.4.tgz, r-oldrel (x86_64): MatchIt_4.5.4.tgz
Old sources: MatchIt archive

Reverse dependencies:

Reverse depends: CBPS
Reverse imports: cem, jsmodule, MatchThem, netdiffuseR, psborrow, RCTrep, sitepickR
Reverse suggests: clarify, cobalt, jointVIP, lmw, marginaleffects, table1, tidysmd


Please use the canonical form to link to this page.