- Introduced by
- Extension of Hainmueller (2012) entropy balancing to spatial settings; spatial adaptations developed in geographic epidemiology and spatial econometrics literature
- Year
- 2010s
- Type
- Quasi-experimental reweighting
- Family
- Quasi-experimental / causal inference
What does it do?
Spatial entropy balancing applies the entropy balancing reweighting of Hainmueller (2012) to observational data in which units have geographic locations.
Control units are reweighted so that their covariate moments match those of the treated group, while the set of eligible controls is constrained by spatial proximity. The approach is intended for settings where nearby units may share confounding or spillover exposure.
The intuition behind the method
Standard entropy balancing reweights control units so that their covariate moments match those of the treated group, without iterative propensity model fitting (Hainmueller 2012). When units are regions, neighbourhoods or points in space, a control unit can resemble a treated unit on observed covariates while sitting in a different local environment, and nearby units may share unmeasured conditions or be affected by the treatment through spillovers. The spatial variant adds a geographic restriction or penalty to the reweighting, so that the balanced control group is drawn from units that are both similar on covariates and spatially plausible counterfactuals. Whether this reduces bias depends on whether the omitted spatial factors are in fact shared among nearby units, which the method does not establish on its own.
History
Entropy balancing was introduced by Hainmueller (2012) as a reweighting method that achieves exact moment balance between treated and control groups. The spatial variant applies the same reweighting with a geographic restriction on eligible controls, and its specific implementation varies across applications.
When to use it
Choose spatial entropy balancing when treatment and outcomes are observed for units with geographic locations, and spatial proximity is a plausible route for confounding or spillovers, such as comparing treated municipalities with nearby untreated ones. The base method was developed for binary treatments in observational studies (Hainmueller 2012). It suits designs in which exact balance on chosen covariate moments is wanted and the geographic plausibility of counterfactuals matters. Interpreting the ATT causally requires that, conditional on the balanced covariates and the chosen spatial rule, treatment is unconfounded for the treated; that treated units have eligible controls in the same geographic region (positive overlap); and that the treatment of one unit does not affect the outcomes of eligible controls (SUTVA, including no spillover). The spatial restriction does not by itself establish any of these conditions, and the spatial extension adds no separate identification result. Do not use it when the data carry no meaningful spatial structure; the spatial restriction then adds little, and standard entropy balancing is the simpler choice. It is also unsuitable when treated and control units do not overlap geographically, because the restriction leaves no comparable controls, or when the restricted control pool is so small that the weights concentrate on a few units.
Limitations and considerations
- Balance holds only on the moments included in the constraints; spatially varying confounders that are absent from the covariate set remain uncontrolled.
- Results depend on the bandwidth or spatial rule, so the estimate should be reported across plausible values.
- A tight spatial restriction can remove distant units that would be good counterfactuals on the observed covariates.
- A small restricted pool can produce concentrated weights and a higher variance in the ATT estimate.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Achieves exact balance on the covariate moments included in the reweighting, without iterative propensity model fitting (Hainmueller 2012).
- Limits the counterfactual pool to units that are spatially plausible comparisons, which may reduce bias from geographic confounding captured by the chosen spatial rule.
- Retains all eligible control units with continuous weights rather than discarding unmatched ones, so the spatial restriction is the main step that removes controls.
- The method does not require caliper choices on covariates, but the spatial bandwidth or neighbourhood rule is an analyst choice; varying it shows how strongly the estimate depends on the assumed reach of spatial dependence.
Applications
- Possible design: evaluating place-based policies (enterprise zones, environmental regulations) by using geographically nearby untreated regions as controls.
- Possible design: estimating neighbourhood effects on health or educational outcomes while balancing on observed neighbourhood characteristics within a spatial buffer.
- Possible design: assessing a local infrastructure investment (transit line, hospital) by comparing nearby and more distant communities.
- Possible design: studying spillovers from treated to adjacent untreated regions by modelling spatial proximity in the weighting scheme.
- Possible design: comparing treated and control census tracts or administrative units drawn from similar regional economic contexts.
How it works
How it works
Define the spatial relation among units before reweighting, for example through geographic coordinates, administrative codes, or a neighbourhood rule that determines which control units are eligible for each treated unit. A common rule makes controls within a chosen distance of each treated unit, or its k nearest neighbours, eligible. This structure fixes which controls can serve as counterfactuals, so the rule should be stated explicitly in any analysis.
Specify the covariate moments to be balanced, so that the weighted mean of each covariate among control units equals the corresponding treated-group value. Variance and higher moments can be added to the constraints, as in standard entropy balancing (Hainmueller 2012).
Formula
\sum_{i \in C} w_i X_{ik} = m_k, \quad k=1,\ldots,KSolve the constrained problem that minimises the entropy divergence sum w_i log(w_i/q_i), subject to the moment constraints and weights summing to one. The solution is the set of weights closest to the base weights q_i in this divergence sense, so the control sample keeps as much of its original spread as the constraints allow. The base weights are often set uniform at 1/n, where n is the number of eligible controls.
Formula
\min_{w} \sum_{i \in C} w_i \log(w_i / q_i) \quad \text{s.t. moment constraints and } \sum w_i = 1Apply the spatial restriction either by limiting the eligible control pool for each treated unit to units within the chosen distance or neighbourhood, or by adding a penalty that discourages weight on distant controls. The strength of the restriction is set by a bandwidth or kernel parameter chosen by the analyst. The exact form of the penalty depends on the implementation used.
Estimate the ATT as the treated-group mean outcome minus the weighted mean of control outcomes, using the spatially restricted weights. The estimand is defined by this difference: the spatial step changes which weights enter the formula, not the formula itself. Uncertainty should account for the reweighting and the spatial restriction, so that the weights are not treated as fixed. The resampling scheme must respect any spatial dependence in the outcomes.
Formula
\hat{\tau}_{ATT} = \bar{Y}_T - \sum_{i \in C} w_i^* Y_iCommon pitfalls
- Checking covariate balance without checking spatial overlap. If treated and control units are geographically separated, the estimate extrapolates beyond the region where controls are observed.
- Specifying many moment constraints relative to the number of eligible controls, which can make the entropy problem infeasible or ill-conditioned.
- Using standard entropy balancing when outcomes are spatially autocorrelated, so that nearby controls are not independent. This affects inference, and where spatial confounding is not captured by the balanced covariates it may also bias the ATT.
- Treating the weights as fixed when computing standard errors, which understates the uncertainty from the reweighting and the spatial restriction.
- Reading the estimate as free of spillover bias without assessing SUTVA. Spillovers from treated units to neighbouring controls violate SUTVA, and restricting controls spatially does not by itself remove that violation.
Frequently asked questions
How is spatial entropy balancing different from standard entropy balancing?
Standard entropy balancing reweights any control unit to match covariate moments, regardless of geographic distance. Spatial entropy balancing adds constraints or restrictions that limit or penalize the use of geographically distant controls, so that the balanced sample also respects spatial proximity.
How do I choose the spatial bandwidth or neighborhood radius?
The bandwidth should be chosen on substantive grounds: how far could spatial spillovers plausibly reach? It should then be tested for sensitivity, and results should be reported across a range of bandwidths to show whether conclusions hold.
Do I need a spatial weights matrix?
Not always. A distance rule or a k-nearest-neighbour restriction on the eligible control pool can define the spatial constraint without a full matrix. A formal spatial weights matrix becomes more relevant if the outcome model is also to account for spatial autocorrelation.
What if the optimization returns extreme weights on a few control units?
This usually signals that the spatial restriction has left too few control units, or that the moment constraints are over-specified. Consider widening the spatial bandwidth, reducing the number of moment conditions, or checking the geographic overlap between treated and control pools.
How do I compute standard errors?
Standard errors that treat the weights as fixed understate the uncertainty from the reweighting step and the spatial restriction. Resampling the whole procedure, including the spatial restriction, the optimisation and the ATT calculation, is one option. With spatially autocorrelated outcomes, however, resampling independent units may not be valid, so inference should use a method that respects the spatial dependence.
Related methods
Sources
Hainmueller, J. (2012). Entropy Balancing for Causal Effects: A Multivariate Reweighting Method to Produce Balanced Samples in Observational Studies. Political Analysis, 20(1), 25-46.
Open DOI referenceEntropy balancing. Wikipedia.
Open publication reference