- Introduced by
- Iacus, King & Porro (CEM); Hansen (optimal/full matching)
- Year
- 2012
- Type
- Matching for causal inference
What does it do?
Matching methods are causal-inference techniques that match treated and control units with similar covariate values, either in pairs or within groups of similar units, so that a treatment effect can be read from a balanced comparison.
This page covers Coarsened Exact Matching (Iacus, King & Porro, 2012), which coarsens each covariate into bins and matches units exactly within the resulting cells, and optimal matching, which selects the matching with the smallest total within-pair covariate distance. Genetic matching is also listed in this family, but it is not described on this page.
The intuition behind the method
To learn the effect of a treatment from observational data, you want treated and untreated units that look alike on everything else. Matching builds those comparable pairs: it groups units with similar background characteristics and discards units that have no good counterpart, so any remaining difference in the outcome can be attributed to the treatment rather than to pre-existing differences.
History
Matching methods extend the matching tradition beyond propensity-score matching. Iacus, King and Porro introduced Coarsened Exact Matching in Political Analysis; the print version is Political Analysis 20(1), 2012, which is the version to cite, while the online version appeared in 2011. Hansen (2004) evaluated full matching on the propensity score in an observational study of coaching for the SAT.
When to use it
Consider matching on observational data when you want to estimate a treatment effect and can credibly assume conditional independence of treatment given the observed covariates. The sample must be large enough that a sufficient number of matched units remain. No fixed minimum applies, so check the matched sample size and the precision of the estimate case by case. CEM suits analysts who want a simple, transparent coarsening rule that is easy to explain, and optimal matching suits cases where the pairing with the smallest total covariate distance is the priority. Avoid matching when the common-support region is narrow or when unmeasured confounding is a serious concern; propensity-score matching, inverse-probability weighting, and sensitivity analysis are the related alternatives to weigh in those cases. Because matching cannot address hidden confounding, run a sensitivity analysis to gauge how strong an unmeasured confounder would need to be to change the conclusion. For CEM, choose the cut points with substantive reasoning and report them.
Limitations and considerations
- If too few units survive matching, the treatment-effect estimate will be imprecise or unstable. There is no universal minimum sample size, so inspect the matched sample size.
- When the common-support region is narrow, close matches may not exist, so balance cannot be reached on all covariates; inverse-probability weighting is then worth considering.
- Matching balances only the observed covariates. Identification still rests on the untestable conditional-independence assumption, so hidden confounding is not addressed by the procedure. A sensitivity analysis can show how fragile the conclusion is to such confounding.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- CEM's rule is simple to state and explain: coarsen each covariate, then match exactly within cells. Its source paper describes the method as exceptionally easy to comprehend and use.
- Optimal matching chooses the set of pairs that minimises total within-pair covariate distance, as the estimator formula states, rather than pairing units greedily one at a time.
- Both approaches accept continuous and categorical covariates, and any residual imbalance after matching can be adjusted with a weighted regression on the matched sample.
Applications
- Estimating the effect of an intervention from observational data when randomisation is not feasible.
- Building covariate-matched treated and control comparisons in health, social-science, and economics studies.
- Constructing comparison groups in which the balance of observed covariates needs to be documented and reported.
How it works
How it works
The target is the treatment effect τ, the expected difference between the potential outcomes under treatment and under control, conditional on covariates X. Under the conditional-independence (ignorability) assumption, comparing treated and control units that share the same covariate values can recover this quantity. Because the estimand is conditional on X, state explicitly which summary is reported, for example the effect among treated units (ATT) or the effect over the full sample (ATE). Which one is estimated depends on which units are retained and how they are weighted after matching.
Formula
\tau = E[Y(1) - Y(0)\mid X]
The estimator step describes matching as choosing pairs (i, j) that minimise the total covariate distance d(X_i, X_j), subject to a covariate-balance condition. This is a general optimal-matching formulation. Coarsened Exact Matching does not solve this minimisation directly. You choose cut points that coarsen each covariate into bins, and units are matched exactly within the same bin cell. Cells that do not contain both treated and control units are dropped, and the retained units receive weights so that treated and control groups are comparable across cells. The effect is then estimated on the weighted matched sample. The coarsening choices therefore determine how much imbalance remains and how many units are lost, and they should be reported. Optimal matching solves the pairing problem itself, selecting the set of matches with the smallest total within-pair distance. After either method, assess balance with the standardised mean difference (SMD). A common convention treats absolute SMDs below about 0.1 as adequate, but this is a heuristic, not a guarantee of balance. Residual imbalance can be reduced by a weighted regression on the matched sample.
Formula
\min \sum_{(i,j)\in M} d(X_i, X_j) \;\text{s.t. covariate balance}Common pitfalls
- Choosing CEM cut points without substantive justification changes how coarse the comparison is and how many units are matched; the cut points should be reported.
- Reporting a treatment effect without checking post-matching balance using the standardised mean difference (SMD); an absolute SMD below about 0.1 is a common convention, though only a heuristic.
- Applying matching to a small sample without checking how many matched units remain, which may be too few to support the estimate.
- Proceeding with matching when the common-support region is narrow, without first checking the overlap between treated and control units.
- Leaving the estimand unstated: the effect among treated units and the effect over the full sample can differ, and dropped units change which population the estimate describes.
Frequently asked questions
How is Coarsened Exact Matching different from propensity-score matching?
Coarsened Exact Matching coarsens each covariate into bins and matches units exactly within the same cells, so the coarsening choices determine how similar matched units are. Propensity-score matching instead collapses the covariates into a single estimated score and matches on that score, which usually requires checking post-matching balance to confirm the matches worked.
What does optimal matching optimise?
Optimal matching selects the set of treated-control pairings that minimises the total covariate distance summed across all matches, so the matched sample is as close as possible overall rather than pairing units greedily one at a time.
How do I check that the matching worked?
Check covariate balance after matching using the standardised mean difference (SMD) between treated and control groups. An absolute SMD below about 0.1 is a commonly used convention, though it is a heuristic. If some imbalance remains, run a weighted regression on the matched sample to adjust for it.
When should I not use matching?
If too few matched units remain for a stable estimate, consider another approach. When the common-support region is narrow and good matches cannot be found, inverse-probability weighting may be more suitable. If unmeasured confounding is a serious concern, matching alone is not enough, and a sensitivity analysis is advisable.
Related methods
Sources
Iacus, S. M., King, G., & Porro, G. (2012). Causal Inference without Balance Checking: Coarsened Exact Matching. Political Analysis, 20(1), 1-24.
Open DOI referenceHansen, B. B. (2004). Full Matching in an Observational Study of Coaching for the SAT. Journal of the American Statistical Association, 99(467), 609-618.
Open DOI reference