Spatial Propensity Score Weighting

Statistics
Introduced by
Extended from Hirano, Imbens & Ridder (2003) IPTW with spatial adaptations by Keele, Titiunik and others in geographically structured causal designs
Year
2000s–2010s
Type
Quasi-experimental / causal inference
Family
Quasi-experimental / causal inference

What does it do?

Spatial propensity score weighting applies inverse probability of treatment weighting (IPTW) to units with geographic locations.

It adds spatially referenced variables to the propensity score model so that location-related differences in treatment probability are taken into account, and its standard errors can be made robust to correlation among nearby units.

The intuition behind the method

Whether a unit is treated can depend on where it is: neighboring units often share treatment status, and local conditions that are hard to measure can affect both treatment and outcomes. Standard propensity score weighting ignores this geography, so weighted treated and control groups may still differ systematically by location. Adding spatially referenced variables to the propensity model gives each unit a treatment probability that reflects its geographic context, and the resulting weights balance the groups on that context as well as on individual covariates.

History

Inverse probability weighting for average treatment effects rests on Hirano, Imbens and Ridder (2003), who showed that weighting by the inverse of a nonparametric estimate of the propensity score yields an efficient estimate of the average treatment effect. The sources listed on this page do not document a spatial extension of this estimator, so the originator of the spatial version is not verified here. Keele and Titiunik's work concerns geographic regression discontinuity designs, in which a geographic boundary defines treatment; this is a related but distinct approach. The method is best understood as an extension of IPTW that adds spatial covariates to the propensity model.

When to use it

Choose this approach when treatment assignment is geographically structured, for example in region-by-region policy rollouts, exposures that vary across space, or neighborhood-level programs. It requires individual or area covariates together with coordinates or area identifiers, and it is most relevant when a plausible confounder varies with location and cannot be captured by individual covariates alone. The estimate is valid under conditional unconfoundedness given individual and spatial covariates, positivity (propensity scores strictly between 0 and 1, with overlap between treated and control units), and no interference between units (SUTVA). Do not use it when units have no meaningful geographic structure, when local samples are too small to estimate location-specific terms, when overlap fails, or when interference between units is substantial. In the last case the standard IPTW estimand does not hold, and the design needs to change.

Limitations and considerations

  • Requires spatial covariates that capture the relevant geographic confounders; if key spatial factors are unmeasured, the spatial propensity score remains incomplete.
  • Locally weighted propensity models need enough treated and control units within each bandwidth, and the bandwidth must be specified explicitly; in sparse regions the local scores become unstable.
  • Does not handle interference between units (spillovers) unless the estimand is explicitly redefined, because standard IPTW estimands assume no interference.
  • Weighting does not remove spatial correlation in the outcomes; residual autocorrelation must be handled through the standard errors.
  • Extreme propensity score weights, a general IPTW problem, can be amplified when spatial confounders are strong, which may call for trimming or stabilized weights.

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

Strengths

  • Location-related confounders can enter the propensity score model directly as coordinates, area-level variables, or spatial lags of covariates, so the score can capture geographic differences in treatment probability that individual covariates miss.
  • The weighting step is the standard IPTW formula, so the estimand is the usual weighted contrast and no outcome model is needed to obtain the weights.
  • Inference can use spatially robust standard errors, so the reported uncertainty can reflect correlation among nearby units in the weighted outcomes.
  • It applies to cross-sectional or panel data that carry geographic identifiers, whether these are coordinates or area units.

Applications

  • Estimating the health effects of air pollution or environmental exposures that vary geographically, controlling for spatial socioeconomic confounders.
  • Evaluating place-based policy interventions — such as enterprise zones or school district reforms — where treated and control regions differ in location-specific ways.
  • Assessing neighborhood-level program impacts in urban studies where treated areas cluster spatially and control selection is geographically structured.
  • Studying political or electoral interventions where treatment (e.g., campaign spending, voter registration drives) is allocated across geographic units.
  • Examining the causal effect of land use or environmental regulations that are implemented region-by-region with spatially correlated confounders.

How it works

How it works

1

The propensity score is the probability of treatment given individual covariates and location, estimated with a model such as logistic regression. Location enters through coordinates, area-level variables, or spatial lags of covariates (and, where appropriate, of treatment), so the score can reflect geographic differences in treatment probability. Spatial lags of the outcome must not be used, because the outcome may itself be affected by treatment, and conditioning on it can bias the estimate.

Formula
\hat{e}(X_i, s_i) = P(T_i=1 \mid X_i, s_i)
2

Treated units receive weight 1/e and control units receive weight 1/(1-e), where e is the estimated propensity score, following the formula shown above. These are unstabilized IPTW weights. They become large when estimated scores are close to 0 or 1, which is the usual source of unstable estimates. Stabilized or trimmed weights are often used in this situation; the choice of stabilization or trimming rule should be stated and justified, as no specific threshold is given on this page.

Formula
w_i = \frac{T_i}{\hat{e}(X_i,s_i)} + \frac{1-T_i}{1-\hat{e}(X_i,s_i)}
3

Before estimating the outcome, check covariate balance in the weighted sample. The primary criterion is the standardized mean difference for individual and spatial covariates. A map of weighted treated and control units can show whether geographic imbalance remains. A weighted Moran's I or a similar statistic can be computed as an exploratory diagnostic of spatial clustering of treatment, but it is not a formal balance test for this design.

4

The outcome is regressed on the treatment indicator using these weights, and the effect estimate is the difference between weighted group means. The displayed formula is the unnormalized Horvitz-Thompson form, which divides by n; the normalized version, which divides each weighted sum by the sum of its weights, differs in finite samples and should be specified if used. The formula shown above targets the average treatment effect (ATE). An average effect on the treated (ATT) requires different weights, which are not given on this page.

Formula
\hat{\tau}_{ATE} = \frac{1}{n}\sum_i w_i \cdot T_i \cdot Y_i - \frac{1}{n}\sum_i w_i \cdot (1-T_i) \cdot Y_i
5

Standard errors should allow for correlation among the outcomes of nearby units. Commonly considered options include spatial HAC standard errors that use a distance bandwidth, or cluster-robust standard errors at a geographic unit such as a county or grid cell. The appropriate choice depends on the setting and should be checked. Ordinary robust standard errors assume independence and can understate uncertainty when residual spatial correlation remains. No variance formula for these estimators is given on this page.

Common pitfalls

  • Omitting spatial covariates from the propensity score model when treatment is spatially clustered, which leaves spatial confounding unaddressed and produces biased estimates.
  • Failing to check spatial balance after weighting — standardized differences may look acceptable globally while large geographic imbalances remain.
  • Using ordinary standard errors instead of spatially robust ones, which leads to anti-conservative inference when spatial autocorrelation is present in the weighted outcomes.
  • Neglecting weight trimming or stabilization when propensity scores are near 0 or 1, inflating variance and making estimates sensitive to a few influential observations.
  • Assuming SUTVA holds when there are obvious spatial spillovers — for instance, when a treatment in one area affects neighboring untreated areas — which invalidates the standard causal estimand.

Frequently asked questions

How does spatial propensity score weighting differ from standard IPTW?

Standard IPTW estimates the propensity score from individual covariates alone and ignores geography. Spatial propensity score weighting adds spatially referenced variables, such as location coordinates, area-level characteristics, or spatial lags of covariates, to the propensity score model, and it can make inference robust to spatial correlation. This can reduce bias from geographic confounding that standard IPTW would leave unaddressed.

What spatial covariates should I include in the propensity score model?

Include covariates that predict treatment assignment and vary across space, such as area-level demographics, distance to infrastructure, or coordinates (for example through spline terms). The goal is to absorb location-based differences in treatment probability that would otherwise confound the causal estimate. Avoid spatial lags of the outcome, since the outcome may be affected by treatment.

How do I check whether weighting has removed spatial imbalance?

After computing weights, examine standardized mean differences for all covariates, including spatial ones, in the weighted sample; these are the primary balance criterion. Also map the geographic distribution of weighted treated and control units. Optionally, compute a weighted version of Moran's I as an exploratory diagnostic of whether spatial clustering of treatment assignment has decreased; it is not a formal balance test.

What standard error estimator should I use?

Spatially robust standard errors are one option, such as HAC-type estimators that allow correlation among units within a distance bandwidth, or cluster-robust standard errors at a meaningful geographic unit such as a county or grid cell. The suitable choice depends on the setting and should be checked. Ordinary or heteroskedasticity-robust standard errors can understate uncertainty when residual spatial correlation remains.

Can this method handle spatial spillovers between units?

Not directly. Standard spatial PSW inherits the stable unit treatment value assumption (SUTVA) from IPTW, which assumes no interference between units. If spatial spillovers are substantial, the causal estimand must be redefined (for example, as direct and spillover effects), and more specialized methods for interference are needed.

Related methods

Sources

  1. Keele, L., & Titiunik, R. (2015). Geographic Boundaries as Regression Discontinuities. Political Analysis, 23(1), 127-155.

    Open DOI reference
  2. Hirano, K., Imbens, G. W., & Ridder, G. (2003). Efficient Estimation of Average Treatment Effects Using the Estimated Propensity Score. Econometrica, 71(4), 1161-1189.

    Open DOI reference