- Introduced by
- Anselin (textbook formalisation); LeSage & Pace
- Year
- 1988
- Type
- Spatial autoregressive regression
What does it do?
The Spatial Lag Model is a regression for cross-sectional data with geographic coordinates.
It lets the outcome of neighbouring units enter the model as an explanatory term (ρWy). It is presented as a textbook formalisation in Anselin's Spatial Econometrics (1988) and treated at length by LeSage and Pace (2009), who emphasise decomposing spillovers into direct, indirect, and total impacts.
The intuition behind the method
Things that are close together tend to be alike, and the outcome in one place can spill over into its neighbours. The spatial lag model captures this by letting each unit's outcome depend partly on the average outcome of the units around it. A spatial weights matrix W defines who counts as a neighbour, and the parameter ρ measures how strongly neighbours' outcomes feed back into one another, so a change in one location ripples outward through the whole map.
History
The spatial lag model belongs to the spatial econometrics framework presented in Luc Anselin's Spatial Econometrics: Methods and Models (1988), which is the textbook source cited here for its formalisation. LeSage and Pace's Introduction to Spatial Econometrics (2009) later refined its use, emphasising the impact decomposition (direct, indirect, total) as the appropriate way to interpret results.
When to use it
Choose the spatial lag model when the outcome is continuous, the data are cross-sectional with geographic coordinates, and there is a substantive reason to expect the outcome in one location to respond to outcomes in neighbouring locations. The spatial weights matrix W should be justified on theoretical grounds, because the results are conditional on it. Lagrange-multiplier diagnostics help choose between specifications. When the LM-Lag test is significant and the LM-Error test is not, this points to dependence in the outcome rather than in the errors, which favours the lag model. Where both tests are significant, the diagnostics do not by themselves settle the choice, and the specification should rest on theoretical grounds and on whether the results hold under both specifications. Do not use it when spatial dependence is more plausibly due to unobserved common factors in the errors, when no meaningful spatial structure exists, or when the data carry no geographic information. Maximum-likelihood estimates are justified asymptotically, so with small samples the estimates can be unreliable and should be interpreted with caution.
Limitations and considerations
- Results depend on W: the neighbour structure is set by the analyst, and a different contiguity or distance rule can change both ρ and the impact estimates.
- The lagged outcome Wy is correlated with the error term, so OLS is inconsistent and estimation must use maximum likelihood or IV/GMM.
- It requires geographic coordinates or another basis for constructing W, so it cannot be applied to data that carry no spatial information.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Models dependence directly in the outcome (ρWy), so a spillover from neighbours is represented as a substantive mechanism rather than as a nuisance in the error term.
- The impact decomposition separates a unit's own response to a predictor (direct) from feedback through its neighbours (indirect), which the raw coefficients do not show.
- Because the endogenous lagged outcome is handled by maximum likelihood or IV/GMM, the coefficient estimates avoid the bias that OLS incurs in this setting.
Applications
- Modelling housing or land prices, where the value of one property depends on the values of nearby properties.
- Studying regional economic outcomes, such as growth or unemployment, that spill across neighbouring areas.
- Analysing geographically clustered phenomena in epidemiology, criminology, and environmental science.
How it works
How it works
The outcome y is written as the sum of a spatially lagged term ρWy, the usual predictors Xβ, and an error ε. Here W is the spatial weights matrix that encodes which units are neighbours, and ρ is the spatial autoregressive parameter measuring the strength of the feedback from neighbouring outcomes. Solving the model for y gives the reduced form y = (I − ρW)⁻¹(Xβ + ε), so the outcome at each location depends on the predictors at all locations, not only its own. The inverse exists only where I − ρW is invertible, so ρ is not unrestricted: its admissible range is set by the eigenvalues of the chosen W. Because the lagged outcome Wy is correlated with the error, ordinary least squares is inconsistent for this model.
Formula
y = \rho W y + X\beta + \varepsilon
The parameters ρ, β, and σ² are estimated by maximum likelihood. The log-likelihood contains the term ln|I − ρW|, the Jacobian of the transformation from the errors to the outcome, which accounts for the endogenous spatial lag. The remaining part is the normal-error quadratic form in the residuals y − ρWy − Xβ. Instrumental-variable or GMM estimation is an alternative. From the fitted model the spillovers are summarised as impacts rather than read off the raw coefficients. For each predictor x_k, the matrix of partial derivatives of y with respect to x_k is (I − ρW)⁻¹β_k, whose (i, j) element is the effect of x_k in location j on the outcome in location i. The direct impact is the average of the diagonal elements (a unit's own response). The indirect impact is the average of the off-diagonal row sums (the response of other units). The total impact is their sum.
Formula
\hat{\theta} = \arg\max_{\rho,\beta,\sigma^{2}} \; \Big[ \ln|I_{N}-\rho W| - \frac{N}{2}\ln\sigma^{2} - \frac{1}{2\sigma^{2}}\,(y-\rho Wy-X\beta)^{\prime}(y-\rho Wy-X\beta) \Big]Common pitfalls
- Reading the raw β coefficients as the effect of a predictor. Because of the feedback through ρWy, the total effect includes spillovers, so the direct, indirect, and total impacts should be reported.
- Estimating the model by OLS, which is inconsistent because of the endogenous spatial lag.
- Choosing the lag model without checking the LM tests. If the LM-Error test dominates, the dependence may sit in the error term and a spatial error model would be more appropriate.
- Treating W as fixed and correct without testing alternative weight definitions, since the conclusions are conditional on it.
Frequently asked questions
How is the spatial lag model different from the spatial error model?
The lag model puts spatial dependence in the dependent variable (ρWy), representing a substantive spillover where neighbours' outcomes affect one another. The spatial error model instead puts the dependence in the error term (λWu), representing unobserved common factors that correlate neighbours' errors. An LM-Lag versus LM-Error test helps decide which specification fits.
Why can't I just use OLS?
Because the spatially lagged outcome Wy is correlated with the error term, the lagged term is endogenous and OLS becomes inconsistent. The model is estimated by maximum likelihood, or alternatively by instrumental variables or GMM.
What is the spatial weights matrix W?
W is a matrix that defines the neighbourhood structure — which units are treated as neighbours and how strongly. Every result depends on it, so it must be specified deliberately (for example by contiguity or distance) and is assumed to be correctly defined and exogenous.
Why report direct, indirect, and total impacts?
Because of the feedback through ρWy, a change in a predictor affects a unit's own outcome (direct), the outcomes of its neighbours (indirect), and the sum of both (total). The raw β coefficients do not reflect these spillovers, so LeSage and Pace recommend interpreting the impact decomposition instead.
Related methods
Sources
Anselin, L. (1988). Spatial Econometrics: Methods and Models. Kluwer Academic.
Open DOI referenceLeSage, J. & Pace, R. K. (2009). Introduction to Spatial Econometrics. CRC Press.
Open DOI referenceThe econometrics of multi-dimensional panels: theory and applications (Advanced Studies in Theoretical and Applied Econometrics, vol. 50), eqs. (9.7)–(9.8), p. ?
Analysis of Panel Data, Sec. 9.2.5, eq. (9.2.26), p. ?