Coarsened Exact Matching in Education Research

Statistics
Introduced by
Iacus, King, & Porro
Year
2012
Type
Matching / quasi-experimental
Family
Quasi-experimental / causal inference

What does it do?

Coarsened Exact Matching (CEM) is a general pre-processing matching method that reduces imbalance between treated and comparison groups before outcome analysis.

It can be applied to educational data such as administrative records, surveys, or quasi-experimental designs, for example to compare students who received an intervention with comparable students who did not, without relying on randomisation. Education-specific applications and their validity should be checked in the applied literature.

The intuition behind the method

Researchers studying educational interventions rarely have the luxury of random assignment: students differ in prior achievement, demographics, and school context. CEM addresses this by temporarily grouping continuous covariates — such as prior test scores or income — into coarser bins, then requiring that treated and comparison students be matched exactly within those bins. Unmatched units are discarded. The result is a trimmed dataset in which the two groups look alike on observed background characteristics, so that the subsequent comparison of outcomes can more credibly be attributed to the intervention rather than to pre-existing differences.

History

Coarsened Exact Matching was formalised by Stefano Iacus, Gary King, and Giuseppe Porro in a 2012 Political Analysis article. The article places CEM within a wider class of monotonic imbalance bounding matching methods, and it presents CEM as a pre-processing method that is easy to understand and use, with open-source software for R, Stata and SPSS. The method is general rather than education-specific, so applications in education should be checked against the applied literature.

When to use it

Consider CEM when you have observational student-level data, such as administrative records, large surveys or programme participation files, and want to estimate the effect of an educational treatment (a tutoring programme, a school choice policy, a curriculum reform or teacher professional development) on an outcome such as a test score, graduation or attendance. It is best suited when the key covariates can be sensibly grouped into a modest number of categories and when enough comparison units remain after pruning to support the planned estimate. Do not use CEM when the sample is so small that pruning would leave too few matched treated or comparison units for stable inference; when there are many continuous covariates without natural cutpoints, so that exact matching on all of them leaves almost no stratum containing both groups; or when an important confounder is not measured, because matching balances only observed characteristics.

Limitations and considerations

  • Pruning unmatched units can substantially reduce sample size, cutting statistical power — a particular concern in small education studies or when the treatment group is a niche subpopulation.
  • The choice of coarsening cutpoints is subjective; different reasonable choices can lead to different matched samples and point estimates, requiring sensitivity analysis.
  • Like all matching methods, CEM only controls for observed confounders; unobserved factors such as student motivation or family support may still bias the estimate.
  • With many covariates, matching on all jointly can produce very sparse or empty strata, forcing researchers to either coarsen aggressively or drop covariates.
  • Estimates apply only to the matched sample (the region of common support), which may not represent all students enrolled in the programme.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The coarsening cutpoints are chosen by the researcher before outcomes are examined, so the matching rule is fixed in advance and can be documented before any treatment effect is estimated.
  • No propensity score model is estimated, so the balance achieved does not depend on a logistic or probit specification being correct.
  • Units are matched on their full coarsened profile across all covariates at once, rather than on a single distance score that summarises them.
  • The matched data can be analysed with standard regression tools, as in the post-matching regression step, to adjust for residual within-stratum imbalance.
  • Because strata are defined by identical coarsened profiles, the matched comparison can be inspected stratum by stratum, which makes the comparison logic easy to explain to non-specialist readers.

Applications

  • Illustrative design: matching voucher recipients to non-recipients on prior achievement and demographics in administrative records to estimate the effect of a school voucher or choice programme on student achievement.
  • Illustrative design: matching students who did and did not receive small-group tutoring on coarsened prior test scores and background variables, when random assignment is not feasible.
  • Illustrative design: matching students in first-year college support programmes to comparable students in institutional enrolment records, then comparing retention or graduation.
  • Illustrative design: matching students taught by alternatively and traditionally certified teachers on prior achievement and demographics, then comparing their outcomes.
  • Illustrative design: matching vocational and academic secondary graduates on family background and baseline ability, then comparing later labour market outcomes.

How it works

How it works

1

Each continuous or many-valued covariate (e.g., prior GPA, household income, baseline test score) is temporarily recoded into a small number of ordered categories. The researcher chooses the coarsening cutpoints; coarser bins yield more matched units but allow more residual imbalance, while finer bins improve balance but reduce sample size.

2

Students are grouped into strata defined by the joint combination of their coarsened covariate values. A treated student and a comparison student are eligible to be matched only if they fall into exactly the same stratum, that is, they have identical coarsened profiles on all covariates simultaneously.

3

Any student in the treatment group who has no comparison counterpart in the same stratum, and any comparison student with no matched treated peer, is dropped from the analytic sample. This pruning step eliminates the least comparable cases and reduces the effective support of the comparison.

4

Within the matched sample, the average treatment effect on the treated (ATT) is estimated as a weighted average over strata that contain both treated and comparison units. In each such stratum s, the difference between the mean treated outcome and the mean comparison outcome is computed, and strata are weighted by their number of treated units. Comparison units receive CEM weights so that, within each stratum, the weighted comparison group is scaled to match the size of the treated group in that stratum. The exact weighting rule should be taken from Iacus, King and Porro (2012) and implemented as documented in the software used. A regression on the matched sample, using these weights, can adjust for residual within-stratum imbalance. For inference, standard errors should respect the matching weights and, for students nested in schools, use a cluster-robust or multilevel estimator; the exact variance procedure depends on the software and model.

Formula
\hat{\tau}_{ATT} = \sum_{s \in S} \frac{n_T^{s}}{n_T}\left(\bar{Y}_{T}^{s} - \bar{Y}_{C}^{s}\right)
5

Post-matching covariate balance is assessed for each covariate, for example with standardised mean differences, and with the multivariate L1 imbalance measure associated with the Iacus, King and Porro (2012) article; check its definition there before reporting it. Balance should be reported before and after matching. No single universal cut-off is established here, so the researcher should state the acceptable level in advance and show that balance improved, before treating the matched comparison group as an adequate counterfactual.

Common pitfalls

  • Choosing coarsening cutpoints after inspecting outcome data, which undermines the pre-processing rationale and introduces bias.
  • Failing to report post-matching balance statistics; a matched sample that still shows large SMDs does not justify a causal interpretation.
  • Interpreting the ATT estimate causally when a key confounder (e.g., student motivation) is absent from the administrative records used for matching.
  • Retaining all unmatched comparison units in the analysis instead of genuinely pruning them, negating the balancing benefit of CEM.
  • Ignoring the multilevel or clustered structure of education data (students nested within schools) when computing standard errors on the matched sample.

Frequently asked questions

How do I choose the coarsening cutpoints for prior test scores?

Common choices include quantile-based bins (quartiles or quintiles of the score distribution), substantively meaningful cut-scores (proficiency thresholds), or equal-width intervals. You should choose cutpoints before examining outcomes, report your choices transparently, and run a sensitivity analysis under at least one alternative coarsening to show results are not driven by the particular choice.

How much sample loss is acceptable after pruning?

There is no universal rule. The relevant questions are whether the matched sample still supports the planned comparison and whether it still represents the treated students of interest. If pruning removes a large share of the treated group, the estimate applies to a narrower group than the full set of participants, and this should be stated explicitly.

Should I run a regression on the matched sample or just compare means?

Running a regression (OLS or multilevel, depending on data structure) on the matched sample is strongly recommended. It adjusts for any residual within-stratum covariate imbalance and accounts for clustering of students within schools, improving precision and reducing remaining bias.

How does CEM compare to propensity score matching in education data?

CEM balances the coarsened covariates directly and does not need a propensity model. Propensity score matching summarises all covariates in one score and can retain more units when covariates are continuous and high-dimensional. Which approach balances better depends on the data, so the choice should be justified and balance compared under both where feasible.

Can I use CEM with multilevel data, such as students nested within schools?

Yes. After matching, you should use a multilevel or cluster-robust regression model to account for the school-level clustering. Some researchers also include school fixed effects in the post-matching regression to absorb school-level unobservables, provided enough within-school variation remains after matching.

Related methods

Sources

  1. Iacus, S. M., King, G., & Porro, G. (2012). Causal inference without balance checking: Coarsened exact matching. Political Analysis, 20(1), 1-24.

    Open DOI reference
  2. Morgan, S. L., & Winship, C. (2015). Counterfactuals and Causal Inference: Methods and Principles for Social Research (2nd ed.). Cambridge University Press.

    ISBN: 978-1107065079