- Introduced by
- Iacus, King & Porro (CEM foundation, 2012); subgroup HTE extensions by Imai & colleagues
- Year
- 2012-2013
- Type
- Matching-based causal inference with subgroup CATE estimation
- Family
- Quasi-experimental / causal inference
What does it do?
Heterogeneous treatment effect coarsened exact matching (HTE-CEM) extends coarsened exact matching (CEM) to estimate how treatment effects vary across subgroups.
CEM coarsens continuous covariates into bins and matches units exactly within the resulting strata, and conditional average treatment effects (CATEs) are then computed within or across those strata.
The intuition behind the method
Standard CEM yields a single average effect for the matched sample. Interventions often work differently for different people: a job-training programme might raise earnings for younger workers and have little effect on older ones. Once units are matched within bins defined by covariates such as age, education and prior income, the strata already define subgroups, so stratum-specific effects can be estimated directly. The result is a map from observable characteristics to effect size, although each estimate is only as precise as the number of matched units in its stratum.
History
Coarsened exact matching was introduced by Iacus, King and Porro in a 2012 Political Analysis article as a matching method that is exceptionally easy to understand and use and that has a wide range of statistical properties not available in most other matching methods. Imai and Ratkovic (2013) treated the estimation of treatment effect heterogeneity in randomized program evaluations as a variable-selection problem, adapting a support vector machine classifier with separate sparsity constraints on pre-treatment and heterogeneity parameters. Their approach is a related method for heterogeneity rather than a matching procedure. The subgroup use of CEM described on this page builds on CEM's stratum structure.
When to use it
Use HTE-CEM when you suspect that treatment effects differ across measurable subgroups and you have observational data in which randomisation was not feasible. It fits best when covariates mix continuous and categorical variables, when the region of common support is of primary interest, and when the matching procedure must be easy to explain to applied or policy audiences. Because it avoids a propensity-score first stage, it is an option when a balancing step that does not rely on a fitted propensity model is preferred; its estimates depend on the coarsening choices, so these should be checked with sensitivity analysis. Do not use it when the covariate set is so large that most strata are empty after matching, when the treatment is continuous rather than binary or discretised, or when the main target is an overall average effect rather than subgroup estimates.
Limitations and considerations
- Bin widths and cutpoints determine which units match and which strata survive. Different reasonable coarsening choices can yield different subgroup estimates, so these choices are researcher degrees of freedom.
- When many covariates are matched on, most cross-product strata can be empty, which shrinks the matched sample and the power of stratum-level comparisons.
- CATE estimates within small strata are imprecise, and examining many subgroups splits the matched sample further.
- The method requires a binary or discretised treatment and does not directly handle a continuous treatment.
- Pruning unmatched units changes the estimand: results describe the matched subsample, not necessarily the full target population.
- The estimates are causal only under selection on observables: the coarsened covariates must include all relevant confounders, and the method does not address unmeasured confounding.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Imbalance on the coarsened covariates is governed by the bin choices, so balance can be reported on the same covariates that define the strata.
- No propensity model is fitted in the balancing stage, so the matched sample does not depend on a correctly specified first-stage model.
- The matching strata can double as subgroups for heterogeneity analysis, which ties subgroup definitions to the same covariates used for balancing.
- Pruning restricts estimates to the region of common support, so the analysis does not extrapolate to units that have no counterpart in the other treatment group.
- The CEM weights can be entered into a weighted outcome regression with treatment and subgroup interactions, so CATE estimation uses standard tools.
Applications
- Identifying which patient subgroups benefit most from a medical intervention using hospital administrative data.
- Estimating heterogeneous wage returns to job-training programmes across age, education, and prior-earnings strata.
- Evaluating differential policy effects of a tax reform or subsidy programme across firm-size or sector subgroups.
- Assessing variation in educational intervention effects by baseline achievement level and demographic group.
- Measuring heterogeneous neighbourhood effects of housing assistance programmes across family composition strata.
- Decomposing average treatment effects in political science field experiments to identify subgroup responsiveness.
How it works
How it works
Each continuous covariate is divided into bins, and the bin boundaries decide which units count as similar. Coarser bins produce more matches but leave more covariate imbalance within each stratum; finer bins reverse this trade-off.
Units are matched exactly on the cross-product of coarsened covariate bins, so two units share a stratum only if they fall in the same bin on every matching covariate. Only strata that contain at least one treated and one control unit are kept.
Units in strata without both treated and control members are dropped. The analysis is then restricted to the region of common support, which changes the estimand, so the sample-size loss should be reported with the results.
Matched units receive stratum-based weights that give treated and control units comparable influence within each stratum, so each stratum's contribution to overall and subgroup estimates reflects the matched design. Treated and control units are weighted differently, and the exact weight definition should be taken from Iacus, King and Porro (2012). These weights enter the outcome model used for effect estimation.
Formula
w_i = \frac{n_{T,s}}{n_{C,s}} \cdot \mathbf{1}[\text{unit } i \text{ matched in stratum } s]The estimand is the conditional average treatment effect at covariate values x, E[Y(1) - Y(0) | X = x]. The matched estimator for a subgroup is the mean outcome of its treated units minus the weighted mean outcome of matched control units within the same strata. Finer heterogeneity can be estimated by a weighted regression of the outcome on treatment, subgroup indicators and their interactions, fitted to the matched and weighted sample.
Formula
\widehat{\tau}(x) = E[Y_i(1) - Y_i(0) \mid X_i = x]Standard errors can be obtained from heteroscedasticity-robust estimators or from the bootstrap applied to the matched sample, and they must account for the weights and the stratum structure of the matched data. Strata with very few matched units give unstable estimates, so the number of treated and control units in each subgroup stratum should be reported with every CATE. When many subgroup CATEs are tested together, multiple-testing corrections such as Bonferroni or Benjamini-Hochberg are needed to control false discoveries.
Common pitfalls
- Bins that are too narrow produce empty strata and large sample loss, while bins that are too coarse leave substantial covariate imbalance within strata.
- Reporting CATEs for many subgroups without a multiple-comparisons correction inflates the risk of false heterogeneity findings.
- Presenting matched-sample estimates as population effects without acknowledging the sample loss from pruning and the restricted estimand.
- Omitting a strong confounder from the coarsening set. CEM balances only the variables explicitly included in the coarsening step, so an excluded confounder remains unbalanced.
- Treating stratum membership as exogenous in the CATE regression, even though the strata were built from the same covariates that appear in the outcome model.
Frequently asked questions
How do I choose the coarsening cutpoints for each covariate?
Cutpoints are a researcher choice and should be justified from substantive knowledge or policy-relevant thresholds. If software sets cutpoints automatically, check which rule it applies. The main trade-off is between balance and sample size: finer bins improve balance within strata but increase the share of unmatched units. Report results across alternative bin widths as a sensitivity check.
How is HTE-CEM different from running a subgroup analysis after ordinary CEM?
A subgroup analysis after ordinary CEM splits the matched sample by one variable and computes within-split effects. HTE-CEM estimates CATEs as a function of several covariates at once, either by using the natural stratum structure or by fitting a weighted interaction model. It treats effect heterogeneity as a quantity to estimate and test rather than as an afterthought.
What if many strata are empty after matching?
Many empty strata usually signal poor common support or coarsening that is too fine. Widen the bin boundaries, reduce the matching covariates to those that are most strongly confounding, or consider a method suited to high-dimensional covariates, such as a causal forest.
Can I use HTE-CEM with panel data?
Standard CEM is set up for matching on pre-treatment covariates in a cross-section. Combining it with a panel difference-in-differences model is an extension that needs its own justification, including how the matching was done and whether parallel trends are plausible within each stratum.
How many observations do I need for reliable CATE estimates?
There is no fixed minimum sample size that applies across settings. Report the number of matched treated and control units in each subgroup stratum alongside every CATE, because small strata give imprecise estimates. CATE analyses generally need more observations than a single overall effect, since the matched sample is divided across subgroups.
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 referenceImai, K., & Ratkovic, M. (2013). Estimating treatment effect heterogeneity in randomized program evaluation. Annals of Applied Statistics, 7(1), 443-470.
Open DOI reference