Package: MatchIt 4.8.2

Noah Greifer

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 <https://www.gurobi.com>.)

Authors:Daniel Ho [aut], Kosuke Imai [aut], Gary King [aut], Elizabeth Stuart [aut], Alex Whitworth [ctb], Noah Greifer [cre, aut]

MatchIt_4.8.2.tar.gz
MatchIt_4.8.2.zip(r-4.7-x86_64)MatchIt_4.8.2.zip(r-4.7-arm64)MatchIt_4.8.2.zip(r-4.6-x86_64)MatchIt_4.8.2.zip(r-4.6-arm64)
MatchIt_4.8.2.tar.gz(r-4.7-arm64)MatchIt_4.8.2.tar.gz(r-4.7-x86_64)MatchIt_4.8.2.tar.gz(r-4.6-arm64)MatchIt_4.8.2.tar.gz(r-4.6-x86_64)
MatchIt_4.8.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
MatchIt/json (API)

# Install 'MatchIt' in R:
install.packages('MatchIt', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kosukeimai/matchit/issues

Pkgdown/docs site:https://kosukeimai.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • lalonde - Data from National Supported Work Demonstration and PSID, as analyzed by Dehejia and Wahba (1999).

On CRAN:

Conda:

cpp

10.00 score 1 stars 26 packages 3.8k scripts 23k downloads 358 mentions 9 exports 5 dependencies

Last updated from:ce682d03df. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK295
linux-devel-x86_64OK324
source / vignettesOK341
linux-release-arm64OK289
linux-release-x86_64OK353
windows-devel-arm64OK405
windows-devel-x86_64OK384
windows-release-arm64OK438
windows-release-x86_64OK342
wasm-releaseOK169

Exports:add_s.weightseuclidean_distget_matchesmahalanobis_distmatch_datamatch.datamatchitrobust_mahalanobis_distscaled_euclidean_dist

Dependencies:argcliRcppRcppProgressrlang

Assessing Balance
Introduction | Recommendations for Balance Assessment | Recommendations for Balance Reporting | Assessing Balance with MatchIt | summary.matchit() | plot.summary.matchit() | plot.matchit() | Assessing Balance After Subclassification | Assessing Balance with cobalt | bal.tab() | love.plot() | bal.plot() | Conclusion | References

Last update: 2026-09-26
Started: 2020-11-14

Estimating Effects After Matching
Introduction | Identifying the estimand | G-computation | Modeling the Outcome | Estimating Standard Errors and Confidence Intervals | Robust and Cluster-Robust Standard Errors | Bootstrapping | Estimating Treatment Effects and Standard Errors After Matching | The Standard Case | Adjustments to the Standard Case | Matching for the ATE | Matching with replacement | Matching without pairing | Propensity score subclassification | Binary outcomes | Survival outcomes | Using Bootstrapping to Estimate Confidence Intervals | The standard bootstrap | The cluster bootstrap | Moderation Analysis | Reporting Results | Common Mistakes | 1. Failing to include weights | 2. Failing to use robust or cluster-robust standard errors | 3. Interpreting conditional effects as marginal effects | References | Code to Generate Data used in Examples

Last update: 2026-09-26
Started: 2020-11-14

Matching Methods
Introduction | Matching | Nearest Neighbor Matching (method = "nearest") | Optimal Pair Matching (method = "optimal") | Optimal Full Matching (method = "full") | Generalized Full Matching (method = "quick") | Genetic Matching (method = "genetic") | Exact Matching (method = "exact") | Coarsened Exact Matching (method = "cem") | Subclassification (method = "subclass") | Cardinality and Profile Matching (method = "cardinality") | Customizing the Matching Specification | Specifying the propensity score or other distance measure (distance) | Implementing common support restrictions (discard) | Caliper matching (caliper) | Mahalanobis distance matching (mahvars) | Exact matching (exact) | Anti-exact matching (antiexact) | Matching with replacement (replace) | $k$:1 matching (ratio) | Matching order (m.order) | Choosing a Matching Method | Reporting the Matching Specification | References

Last update: 2026-09-26
Started: 2020-11-14

Matching with Sampling Weights
Introduction | Matching | Assessing Balance | Estimating the Effect | Code to Generate Data used in Examples | References

Last update: 2026-09-26
Started: 2020-11-14

MatchIt: Getting Started
Introduction | Planning | Check Initial Imbalance | Matching | Assessing the Quality of Matches | Trying a Different Matching Specification | Estimating the Treatment Effect | Reporting Results | Conclusion | References

Last update: 2026-09-26
Started: 2020-11-14