- Introduced by
- Extension of Abadie & Imbens (2006) matching estimator to spatial settings; geographic applications developed in urban/environmental econometrics literature
- Year
- 2000s–2010s
- Type
- Quasi-experimental causal inference
- Family
- Quasi-experimental / causal inference
What does it do?
The Spatial Matching Estimator estimates treatment effects by pairing each treated geographic unit with untreated units nearby, so that comparison units are chosen partly on location as well as on observed covariates.
It rests on the assumption that units close in space share unobserved characteristics that vary smoothly across space. Restricting matches to a geographic neighbourhood, or weighting them by spatial proximity, is intended to reduce confounding that covariate matching alone does not address.
The intuition behind the method
Imagine evaluating whether a new highway improved local employment. Standard matching would pair treated towns with similar towns anywhere in the country, but distant towns may differ on unobserved factors such as local culture, climate or political environment. Spatial matching instead looks for comparison towns close to the treated ones, on the working assumption that nearby towns share these unobserved factors. The effect is estimated as the average gap between each treated town's outcome and the outcome of its spatially restricted comparison group, after adjusting for observed covariates. The central idea is that geography can serve as a proxy for confounders that are hard to measure directly.
History
Abadie and Imbens (2006) established large-sample properties for matching estimators of average treatment effects, focusing on matching with replacement and a fixed number of matches. Their paper concerns covariate matching and does not address geographic matching. Spatial variants of matching were developed in urban and environmental econometrics during the 2000s and 2010s.
When to use it
Use the Spatial Matching Estimator when treatment is assigned to geographic units, such as towns, firms with known locations or land parcels, and you expect unobserved confounders to vary smoothly across space, so that nearby untreated units are plausible counterfactuals. It is most relevant in environmental, urban and agricultural economics, where spatial heterogeneity is pronounced. The method needs a reasonable number of treated units and good covariate overlap between treated and untreated areas. Do not use it when treated units are geographically isolated with no untreated units nearby, when spillovers between neighbouring units are large, or when the outcome is driven by global factors that spatial proximity cannot capture.
Limitations and considerations
- All units need spatial coordinates or reliable spatial identifiers; imprecise geocoding or coarse administrative boundaries can place treated and control units in the wrong neighbourhoods and degrade match quality.
- If treated units are geographically isolated, valid spatial matches may not exist, and the spatial restriction must be relaxed or the analysis switched to standard matching without a geographic constraint.
- Spatial spillovers, where treated units affect nearby controls, bias the ATT estimate; identifying and excluding buffer zones is necessary, but the choice of buffer involves judgement.
- With many covariates combined with a geographic constraint, the matching problem becomes high-dimensional, which can leave covariate balance poor and increase variance.
- Residuals may be spatially autocorrelated, so the variance estimator must be chosen with care; cluster-robust standard errors that are standard in other settings may not fully capture this dependence.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Restricting matches to geographically close units addresses spatially correlated unobservables that covariate matching does not, which can reduce omitted-variable bias when the smooth-variation assumption holds.
- Geographic distance can be combined with covariate matching, such as Mahalanobis distance or the propensity score, so that units are balanced on both location and observed characteristics.
- It is a nonparametric matching estimator and does not require a parametric model of the outcome. Abadie and Imbens (2006) study its large-sample behaviour, and their results show that fixed-match estimators are not generally consistent at the usual parametric rate, so its properties should be checked for the specific design rather than assumed.
- Matched pairs can be mapped and inspected, which helps check that each treated unit's comparison units are geographically plausible and similar on observed covariates. Maps cannot test unobserved confounding, which the spatial restriction is intended to address but which the matched data cannot verify.
Applications
- Evaluating place-based economic policies such as enterprise zones or special economic zones by matching treated municipalities with nearby untreated ones.
- Assessing the effect of environmental regulations or conservation programmes on land use and agricultural productivity using spatially restricted controls.
- Estimating the causal impact of infrastructure investments (roads, broadband, transit) on local employment or housing prices.
- Studying neighbourhood effects in education research by matching schools or districts in adjacent zones with similar socioeconomic profiles.
- Measuring the economic effects of natural disasters or pollution events by comparing affected areas with nearby unaffected areas.
- Evaluating agricultural extension programmes or input subsidies by matching treated farms with geographically proximate untreated farms.
How it works
How it works
Define the unit of analysis (for example municipalities, postcodes, grid cells or farms) and attach geographic coordinates or spatial identifiers to each one. Specify clearly which units received the policy or intervention and which did not.
For each treated unit, compute the distance to every untreated unit using the Euclidean distance shown in the formula above. This formula applies to coordinates in a projected planar system measured in a consistent metric unit. For unprojected latitude and longitude in degrees, the planar formula does not give a valid metric distance, and a geodesic distance measure should be used instead. Optionally restrict the candidate pool to units within a maximum distance radius, so that spatial proximity acts as a hard constraint.
Formula
d_{ij} = \sqrt{(x_i - x_j)^2 + (y_i - y_j)^2}Select the M nearest untreated units for each treated unit, using a combined distance that blends geographic proximity with covariate similarity, such as Mahalanobis distance on the observed confounders. Abadie and Imbens (2006) analyse matching with replacement and a fixed number of matches. The choice of M and of replacement should be reported and justified.
The formula above averages, over treated units, the difference between each treated outcome and the mean outcome of its M matched controls. Because the average runs over the treated set, the estimand is the average treatment effect on the treated (ATT), not the full-sample average treatment effect. The formula is a simple matching estimator with no bias correction. Abadie and Imbens (2006) show that matching estimators are not root-N consistent in general and describe conditions under which they are, so the properties of the estimator should be checked for the specific design rather than assumed.
Formula
\hat{\tau} = \frac{1}{N_T}\sum_{i \in \mathcal{T}} \left(Y_i - \frac{1}{M}\sum_{j \in \mathcal{M}(i)} Y_j\right)Check for spatial spillovers, which violate the stable unit treatment value assumption: if treated units affect nearby control units through market or network links, the comparison group is contaminated. Exclude control units within a buffer around treated units, or test how the estimate changes as the exclusion radius varies.
Common pitfalls
- Ignoring spatial spillovers: if treated units push economic activity toward or away from nearby control units, the control outcomes are contaminated and the ATT is biased. Test sensitivity to buffer exclusions.
- Choosing the distance radius arbitrarily: a radius that is too tight leaves treated units unmatched, while one that is too wide weakens the spatial logic. Vary the radius in robustness checks and report the results at each radius.
- Not checking covariate balance after spatial matching: proximity does not guarantee balance on key confounders. Report standardised mean differences before and after matching.
- Relying on geographic proximity to proxy for confounders across an economically or institutionally heterogeneous study area. Region fixed effects or stratification by administrative area may be needed.
Frequently asked questions
How is spatial matching different from standard propensity-score matching?
Standard propensity-score matching pairs units on a scalar score built from observed covariates and ignores location. Spatial matching adds geographic proximity as a criterion or constraint, on the assumption that nearby units share unobserved confounders that the covariates do not capture. The two are often combined, for example by matching on the propensity score within a spatial radius.
What is SUTVA and why does it matter here?
The Stable Unit Treatment Value Assumption (SUTVA) requires that a unit's outcome depends only on its own treatment, not on the treatment of others. In spatial settings this is often violated, because treated areas can generate spillovers, such as employment effects, pollution or price changes, into nearby control areas. If controls are contaminated by these spillovers, the estimated ATT is biased. A common remedy is a buffer zone that excludes control units within a minimum distance of treated areas.
What assumptions must hold for the estimate to be read as causal?
The estimate is causal only if three conditions hold. First, conditional independence: once location and the observed covariates are accounted for, treatment assignment is independent of the outcome each unit would have without treatment, so matched controls stand in for what treated units would have experienced otherwise. Second, overlap: each treated unit has comparable untreated units nearby on the matching variables, so that matches exist across the range of covariates. Third, SUTVA, as explained in the answer above. Matching does not test these assumptions. Unobserved confounding that varies across space in ways the matching does not capture will bias the estimate, and the spatial restriction reduces this risk without removing it.
How do I choose the spatial radius for matching?
There is no universal rule. Start from subject-matter knowledge about how far the treatment mechanism plausibly reaches, then run sensitivity analyses across a range of radii. If the results are stable across radii, the spatial-proximity assumption is less likely to be driving the findings. Report balance statistics at each radius.
Can I use spatial matching with panel data?
Extensions that also match on pre-treatment outcome trajectories, in addition to spatial proximity, are one option for panel data. Such extensions can support the parallel-trends reasoning behind the comparison. They are not covered on this page, so their assumptions should be checked separately before use.
How should I compute standard errors?
Abadie and Imbens (2006) give a variance estimator for matching estimators that does not require consistent nonparametric estimation of unknown functions. Because residuals may be spatially autocorrelated, cluster-robust standard errors at the geographic unit level or spatial HAC errors can be used as checks, but their adequacy depends on the form of the spatial dependence. Report which variance estimator was used and why.
Related methods
Sources
Abadie, A., & Imbens, G. W. (2006). Large Sample Properties of Matching Estimators for Average Treatment Effects. Econometrica, 74(1), 235-267.
Open DOI referenceMatching (statistics). Wikipedia.
Open publication reference