Spatial Coarsened Exact Matching (Spatial CEM)

Statistics
Introduced by
Iacus, King & Porro (CEM foundation, 2012); extended to spatial contexts by applied spatial econometricians
Year
2012 (CEM foundation); spatial extension in applied literature 2015-present
Type
Quasi-experimental matching estimator with spatial covariates
Family
Quasi-experimental / causal inference

What does it do?

Spatial Coarsened Exact Matching applies the Coarsened Exact Matching (CEM) approach to designs in which the units are geographic areas, such as neighbourhoods, census tracts, municipalities or grid cells.

Covariates are coarsened into discrete bins, treated and control units are matched exactly within those bins, and geographic attributes are included as matching variables so that location-based confounding is addressed. The spatial variant is a practice-based adaptation of CEM rather than a formally defined estimator, so the choices described here reflect common practice in applying CEM with geographic covariates.

The intuition behind the method

Standard matching methods pair treated and control units that look similar on observed covariates. When the units are geographic areas, location can itself be a confounder: nearby areas tend to share unobserved neighbourhood characteristics, infrastructure and possible spillover effects. Spatial CEM therefore places geographic covariates, such as region, distance to a landmark or spatial cluster membership, among the variables that must match exactly after coarsening. This stops the estimator from pairing an urban treated tract with a rural control tract only because their socioeconomic profiles happen to align, so the matched pairs are comparable both observationally and geographically.

History

Coarsened Exact Matching was introduced by Iacus, King and Porro and published in Political Analysis in 2012. The reference used here is volume 20, issue 1 (2012); OpenAlex metadata lists 2011 as the record year. CEM guarantees exact balance on coarsened covariates without requiring a correctly specified propensity score model. The spatial variant has no single originating source. It is a practice-based adaptation in which geographic covariates and spatial checks are added to the standard CEM workflow.

When to use it

Use Spatial CEM when your units are geographic areas or locations, treatment assignment varies across space, and you suspect that location-specific characteristics such as urban density, proximity to infrastructure or regional policy regimes confound the treatment-outcome relationship. It suits designs where the treated and control areas overlap enough on the coarsened covariates to leave a usable matched sample, and where you prefer a transparent matching rule to a model-based propensity score. Do not use it when there are too few geographic units to form matched strata, when spillovers from treated to control areas are pervasive (a violation of SUTVA), or when exact stratum matching would prune so many units that the remaining sample is unrepresentative of the treated areas.

Limitations and considerations

  • Coarsening choices (bin boundaries) are subjective and can materially change which units are matched and therefore which effect is estimated.
  • When many spatial covariates are included or bins are fine, strata become sparse, large fractions of the sample are pruned, and external validity falls.
  • Spatial CEM controls for observed spatial confounders but remains vulnerable to unobserved spatial heterogeneity that the included covariates do not capture.
  • The method does not model spatial spillovers. If treatment in one area affects outcomes in adjacent control areas, the ATT estimate is contaminated.
  • Matching on spatial bins ignores residual geographic variation within each stratum, which may still confound the comparison.
  • Identification rests on conditional ignorability given the coarsened covariates (no unobserved confounders of treatment and outcome once these are matched), on overlap within retained strata, and on SUTVA. The ATT is identified only for treated units that fall in strata with matched controls, not for all treated areas.

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

Strengths

  • Guarantees exact balance on the coarsened covariates within the retained strata. Balance on the raw, uncoarsened covariates is not guaranteed.
  • Includes geographic covariates as explicit matching dimensions, so comparisons are restricted to areas that are similar on location-based measures as well as on other covariates.
  • Does not require a propensity score model, so the results do not depend on a chosen functional form for treatment assignment.
  • Pruning of unmatched strata makes the scope of the estimate explicit: the researcher can state which part of the spatial sample supports the ATT.
  • The coarsening choices are visible decisions that can be reported and varied in sensitivity analysis.

Applications

  • Illustrative design: evaluating a local zoning or land-use regulation by comparing treated and control neighbourhoods matched on spatial and socioeconomic covariates.
  • Illustrative design: comparing pollution exposure between industrial and non-industrial census tracts matched on demographic and geographic covariates.
  • Illustrative design: assessing a new transit line by comparing areas near the line with geographically and demographically similar untreated areas.
  • Illustrative design: studying a spatially targeted subsidy by matching treated municipalities to untreated municipalities in similar geographic and economic zones.

How it works

How it works

1

Each covariate, including spatial ones such as geographic zone, urban-rural classification or distance decile, is coarsened into a user-defined set of discrete bins. This turns continuous geographic gradients into categories that can be matched exactly. The cost is that units within the same bin are treated as equivalent, so the bin boundaries directly shape which comparisons are made.

2

Treated and control units are matched exactly within the same stratum of coarsened covariate values. Strata that contain only treated units or only control units are dropped, which removes comparisons that would require extrapolation. The retained strata define the matched sample, and the estimate applies only to treated units in these strata. The formula in mechanics assumes one matched control per treated unit within the stratum (one-to-one matching). Many-to-one matching with stratum-based weights is a different implementation. Its number of controls per treated unit and its weighting scheme should be stated explicitly, and its results should be reported separately from the formula shown.

3

Balance on the coarsened covariates is the balance that CEM directly checks, including the coarsened spatial covariates. Because geographic variables are matching dimensions, the matched sample should also be inspected for geographic concentration: treated units should not sit in a different region from their matched controls. Maps of matched pairs or a Moran's I statistic can support this inspection, but they check the geographic distribution of the matched sample and do not by themselves establish that residual spatial confounding is absent.

4

The formula in mechanics estimates the average treatment effect on the treated (ATT) as the mean, over the matched treated units, of each treated outcome minus the outcome of its matched control unit j(i). It assumes one matched control per treated unit, so each matched treated unit contributes one difference with equal weight. Weighted many-to-one implementations use a different expression and different weights, and should be reported as such rather than read as the expression shown.

Formula
\hat{\tau}_{ATT} = \frac{1}{|\mathcal{M}|} \sum_{i \in \mathcal{M}} \left( Y_i^{(1)} - Y_{j(i)}^{(0)} \right)
5

Standard errors can be obtained with heteroskedasticity-robust or cluster-robust variance estimators, clustering on the geographic unit or a spatial block. When residuals are spatially autocorrelated, spatially clustered standard errors or permutation-based inference are more appropriate than conventional errors that assume independent observations.

Common pitfalls

  • Choosing coarsening bins after looking at the outcome or at the matched sample size, which introduces specification searching. Bins should be set a priori or from substantive knowledge of the geography.
  • Ignoring spatial autocorrelation in residuals after matching and reporting conventional standard errors, which understate uncertainty when nearby units share unobserved shocks.
  • Treating Spatial CEM as a substitute for randomisation when SUTVA is violated. If treated areas generate spillovers into neighbouring control areas, the comparison is invalid.
  • Omitting a balance check on the matched sample's geographic distribution. A matched sample in which treated and control units are geographically segregated signals residual spatial confounding.
  • Pruning many unmatched units without reporting how much was pruned, which obscures whether the estimated ATT is representative of all treated areas.

Frequently asked questions

How does Spatial CEM differ from standard CEM?

Standard CEM matches on any set of observed covariates. Spatial CEM explicitly includes geographic covariates, such as region, urban-rural classification, distance deciles or spatial cluster indicators, as matching dimensions. This makes matched pairs comparable on location as well as on other covariates, which standard CEM would not ensure if the spatial variables were left out.

How do I choose coarsening bins for spatial covariates?

Bins should reflect substantively meaningful geographic strata, fixed before looking at outcomes. Examples include administrative regions, urban-suburban-rural classes or distance quartiles from a landmark. Avoid choosing bins to maximise the matched sample size, as this is specification searching. Sensitivity analyses across several plausible coarsening schemes help show whether the estimate is robust to the choice.

What if many units are pruned during matching?

Heavy pruning means the treated and control covariate distributions overlap only in a narrow region of the covariate space. The resulting ATT is valid for that overlapping subpopulation but may not generalise to all treated areas. Report the fraction pruned and describe how retained and pruned treated units differ, so readers understand the scope of inference.

Should I use spatially clustered standard errors?

Consider them if residuals are spatially autocorrelated within matched strata. After matching, test residuals for spatial autocorrelation, for example with Moran's I. If the test indicates autocorrelation, cluster standard errors at the spatial block or geographic unit level, or use spatial HAC estimators. Ignoring spatial autocorrelation tends to make inference anti-conservative.

Can Spatial CEM handle spatial spillovers between treated and control units?

No. Like other standard matching estimators, Spatial CEM assumes the Stable Unit Treatment Value Assumption (SUTVA), under which a unit's outcome depends only on its own treatment status. If treated areas generate externalities in neighbouring control areas, such as displacement or knowledge spillovers, control outcomes are contaminated. In that case, consider spillover-robust spatial designs, or exclude control units within a geographic buffer of treated areas that may be affected.

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. Anselin, L., & Rey, S. J. (Eds.) (2014). Modern Spatial Econometrics in Practice: A Guide to GeoDa, GeoDaSpace and PySAL. GeoDa Press.

    ISBN: 978-0986342103