- Introduced by
- Kelejian & Prucha (generalized spatial 2SLS); Anselin (spatial econometrics framework)
- Year
- 1988-1998
- Type
- Quasi-experimental causal inference with spatial dependence
- Family
- Quasi-experimental / causal inference
What does it do?
Spatial Instrumental Variables (Spatial IV) is a causal inference method for settings where units such as regions, firms or neighbourhoods are spatially interdependent.
In such data, standard IV does not address the spatial dependence directly, and the instrument can itself be affected by it. The method builds instruments from spatially lagged values of exogenous characteristics of neighbouring units and applies two-stage least squares, which requires the instruments to be relevant and excludable.
The intuition behind the method
In many geographic datasets, conditions in one area are linked to conditions in neighbouring areas, and the variable you want to study may itself respond to the outcome. A standard instrument may then be correlated with the error term through these links. Spatial IV uses characteristics of neighbouring units that affect the endogenous variable through proximity but are assumed not to affect the outcome directly. The spatial weights matrix W states explicitly which units count as neighbours and how strongly they are connected, so the identifying assumptions can be inspected and varied.
History
The spatial econometrics framework on which this method rests is set out in Anselin (1988), Spatial Econometrics: Methods and Models. The generalised spatial two-stage least squares procedure for a spatial autoregressive model with autoregressive disturbances is due to Kelejian and Prucha (1998). The method has since been used in applied work across several fields to estimate causal effects in geographic data.
When to use it
Use Spatial IV when the data are geo-referenced, the regressor of interest is endogenous, and there is a credible exogenous source of variation that reaches the regressor through spatial proximity. Examples include the effect of a neighbouring jurisdiction's policy on local outcomes, or the effect of neighbours' infrastructure on local firms through market access. The method is appropriate when units sit in a geographic or network structure that is substantively linked to the question. Do not use it when the neighbourhood structure is arbitrary, when the exclusion condition cannot be defended, or when the instrument's spatial variation also affects the outcome directly. If observations are independent across space, standard IV is sufficient. Results depend on the specification of W, so they should be checked against alternative weights.
Limitations and considerations
- The exclusion condition, that neighbours' instrument values affect the outcome only through the endogenous regressor, is difficult to defend when outcomes themselves spill over between neighbouring units.
- Estimates depend on the choice of W, and in most applications there is no single defensible neighbourhood structure.
- Spatially lagged exogenous variables may correlate only weakly with the endogenous regressor, particularly when spillovers are limited, which produces a weak-instrument problem.
- Reliable estimation requires enough spatial density and variation; sparse regions or arbitrary boundaries weaken the credibility of the instrument.
- Estimation with spatial dependence is more involved than standard 2SLS and requires specialised spatial econometrics software, which increases the risk of specification errors.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- It handles endogeneity in spatially dependent data by using neighbours' exogenous characteristics as instruments when they plausibly affect the regressor through proximity without directly affecting the outcome. That exclusion restriction must be defended in each application.
- It uses geographic variation in neighbours' exogenous characteristics, which is often measurable and can be argued to be exogenous to the unit's own outcome.
- The spatial weights matrix makes the spatial assumptions explicit, so the analysis can be repeated under alternative choices of W.
- The model can be combined with a spatial error term, so residual dependence is represented in the specification rather than ignored.
Applications
- Estimating the effect of neighbouring jurisdictions' policy adoption, such as minimum wage or land use regulation, on local labour or housing markets.
- Estimating the effect of market access, instrumented by neighbours' geographic or infrastructure characteristics, on regional economic growth.
- Evaluating spillover effects of public investment, such as transport or broadband, on the productivity of neighbouring areas.
- Studying peer effects in educational attainment or crime, using neighbours' demographic characteristics as instruments for local peer composition.
- Assessing how instability in neighbouring countries affects domestic economic or social outcomes.
- Measuring the effect of spatially concentrated pollution or environmental shocks on the health or property values of nearby communities.
How it works
How it works
Define a spatial weights matrix W in which each entry w_ij records whether unit j is a neighbour of unit i, and how strongly. Common choices are contiguity (shared borders), inverse-distance weights, and k-nearest-neighbour matrices. Weights are often row-standardised so that each row sums to one, which makes a spatial lag a weighted average of neighbouring values; the choice of convention should be reported.
Formula
W_{ij} = \begin{cases} w_{ij} & \text{if } j \in N(i) \\ 0 & \text{otherwise} \end{cases}For each endogenous regressor, construct a spatial instrument Z_i as the spatial lag of an exogenous variable X, that is, the W-weighted sum of X over neighbouring units. The mechanics show this for one endogenous regressor and one instrument; with several endogenous regressors, at least as many spatial instruments are needed as there are endogenous regressors. The instrument is relevant only if neighbours' X values move the endogenous regressor, and it is excludable only if those neighbour values affect the outcome through the endogenous regressor alone. The own-unit X must itself be exogenous, meaning uncorrelated with the structural error term, and the neighbour values used to build Z must satisfy the same requirement. Both conditions must be argued for the specific application, since the exclusion condition is the more contestable one. The instrument set used (for example, own-unit X together with higher-order spatial lags of X) and the row-standardisation convention for W should be reported with any estimate.
Formula
Z_i = \sum_{j} W_{ij}\,X_j \quad (\text{spatially lagged exogenous variables})Regress the endogenous regressor on the spatial instrument Z, the own-unit exogenous variable X, and the model's other exogenous controls. The first stage shows whether Z predicts the endogenous regressor with enough strength; a first-stage F-statistic below 10 is a common rule of thumb for a weak instrument, and weak instruments make the second-stage estimates unreliable.
Formula
\hat{D}_i = \pi_0 + \pi_1 Z_i + \pi_2 X_i + \nu_iReplace the endogenous regressor with its first-stage fitted values and estimate the structural equation by OLS. The coefficient on the instrumented regressor is identified only under the relevance and exclusion conditions described above; it should not be interpreted as a causal effect for any particular subgroup without further assumptions. Standard errors must reflect the dependence present in the data. Ordinary heteroskedasticity- or cluster-robust errors do not in general model spatial dependence, so the inference approach should be justified separately.
Formula
Y_i = \beta_0 + \beta_1 \hat{D}_i + \beta_2 X_i + \varepsilon_iThe error term in this specification follows a spatial autoregressive process with parameter lambda, which captures unobserved confounders that are correlated across neighbouring units. Kelejian and Prucha (1998) give a generalised spatial two-stage least squares procedure for a spatial autoregressive model with autoregressive disturbances. That model includes a spatial lag of the outcome, which is not part of the specification written here, so whether that estimator applies directly to this specification should be checked before it is used.
Formula
\varepsilon_i = \lambda \sum_j W_{ij}\,\varepsilon_j + u_iCommon pitfalls
- Treating the spatial lag of an exogenous variable as a valid instrument without examining the exclusion condition. If neighbours' outcomes feed back into the unit's own outcome, the instrument can be correlated with the error term.
- Choosing W to maximise the first-stage F-statistic instead of on substantive grounds. This is a form of specification search and can invalidate the reported inference.
- Ignoring spatial dependence in the residuals and reporting standard errors as if the observations were independent. Residuals should be tested for spatial autocorrelation, for example with Moran's I, and the inference adjusted accordingly.
- Applying Spatial IV to small samples in which there are few neighbours per unit, so that the instrument varies little and the large-sample approximations of 2SLS are doubtful.
- Confusing the spatial lag of the outcome with the spatial error term. These imply different models and different estimation strategies, and mixing them produces biased or inconsistent estimates.
Frequently asked questions
How do I choose the spatial weights matrix W?
W should reflect the substantive mechanism of spatial interdependence: contiguity for administrative units with shared borders, inverse distance for market interactions, and k-nearest neighbours when density varies across the sample. Justify the choice on theoretical grounds and check robustness by repeating the analysis with alternative W specifications. Do not choose W only because it gives the strongest first stage.
What makes a valid spatial instrument?
A valid spatial instrument must be relevant, meaning neighbours' exogenous characteristic predicts the endogenous regressor with enough strength (a first-stage F above 10 is a common rule of thumb), and excludable, meaning it affects the outcome only through the endogenous regressor. The exclusion condition is violated if outcomes spill over to neighbours, which is a common concern, so it should be defended with contextual arguments and sensitivity analyses.
Do I need to correct for spatial autocorrelation in the residuals?
In many geographic applications, yes. Unobserved confounders may cluster in space and produce correlated residuals, which make standard errors unreliable if ignored. Test the residuals for spatial autocorrelation after estimation, for example with Moran's I. If dependence is detected, the inference should be adjusted with a method designed for spatial dependence; ordinary robust errors do not in general address it.
What if the data have no meaningful spatial structure?
If W contains no non-zero entries that reflect a substantive mechanism, the spatial instrument Z_i = sum_j W_ij X_j is zero for every unit. An instrument that is identically zero provides no identifying variation, so the model cannot be estimated with Spatial IV. In that case use standard IV with an instrument that does not depend on spatial links. Where observations are independent across space, standard IV is sufficient.
Can I use Spatial IV with panel data?
The specification on this page is cross-sectional. A panel version requires additional choices that are not covered here, including how the weights are kept consistent across periods, whether spillovers are contemporaneous or lagged, and how unit-specific unobservables are handled. Consult the relevant literature before applying the method to panel data.
Related methods
Sources
Kelejian, H. H., & Prucha, I. R. (1998). A Generalized Spatial Two-Stage Least Squares Procedure for Estimating a Spatial Autoregressive Model with Autoregressive Disturbances. Journal of Real Estate Finance and Economics, 17(1), 99-121.
Open DOI referenceAnselin, L. (1988). Spatial Econometrics: Methods and Models. Kluwer Academic Publishers, Dordrecht.
ISBN: 978-9024737208