- Introduced by
- Anselin, Le Gallo & Jayet; Elhorst
- Year
- 2003-2008
- Type
- Spatial panel regression
- Family
- GIS / spatial
What does it do?
The Space-Time Spatial Lag Model extends the classic spatial autoregressive (SAR) lag model to panel data, capturing how the outcome in each location at each time point is influenced by the contemporaneous outcomes of neighboring locations, while also controlling for unit-specific and time-specific fixed effects.
The intuition behind the method
Think of a contagion process unfolding on a map over time: if property prices rise in one neighborhood today, neighboring neighborhoods tend to follow, and the same kind of spillover can recur in every period of the panel. The space-time spatial lag model formalizes this by including a spatially lagged dependent variable (the weighted average of neighbors' outcomes at the same time) as a predictor, alongside covariates and unit and time fixed effects. The spatial autoregressive parameter rho summarizes the strength and direction of this neighbor-to-neighbor dependence.
History
The spatial lag model comes from the spatial econometrics literature on cross-sectional data. Its extension to panel data is set out in Elhorst's 2014 monograph Spatial Econometrics: From Cross-Sectional Data to Spatial Panels and in the spatial panel chapter by Anselin, Le Gallo and Jayet (2008).
When to use it
Use the space-time spatial lag model when your panel shows significant positive spatial autocorrelation in the dependent variable across time periods and theory suggests genuine spillover or diffusion between neighbors, for example regional growth, disease spread, crime diffusion, or housing markets. It needs a panel with multiple time periods; check the panel length against the estimator you plan to use, because very short panels raise the incidental-parameters concern noted under limitations and no universal minimum number of periods applies. Do not use it when spatial correlation is driven by correlated omitted variables rather than true spillovers (a spatial error model is usually more appropriate then), when the panel is very unbalanced, when W is unknown or highly uncertain, or when outcomes across units are not meaningfully interdependent within the same period.
Limitations and considerations
- Requires a pre-specified spatial weights matrix W, and results can be sensitive to that choice.
- ML estimation is computationally intensive for large N and is not trivial to implement.
- The specification assumes the spatial structure is stable over time, because W does not change across periods.
- Distinguishing true spillovers from spatially correlated omitted variables is difficult without strong theory.
- With very few time periods, fixed-effects estimation suffers from the incidental-parameters problem.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Explicitly models spatial spillover and contagion processes between geographic units over time.
- Jointly controls for unobserved unit heterogeneity (fixed effects) and common time shocks.
- Rho gives a single summary of neighbor interaction strength, although it is not by itself the full spillover effect (see pitfalls).
- The direct/indirect effects decomposition separates own-unit impacts from cross-unit impacts of a covariate change.
- ML estimation yields efficient, consistent estimates when the model is correctly specified.
Applications
- Regional economic growth: testing whether GDP growth in one region spills over to neighboring regions across years.
- Housing markets: modeling how price shocks propagate across adjacent urban neighborhoods over time.
- Public health: estimating spatial diffusion of disease rates across counties or districts in longitudinal data.
- Environmental policy: assessing cross-jurisdiction spillovers in pollution or energy consumption panels.
- Crime diffusion: detecting whether crime displacement spreads spatially across policing districts over time.
- Agricultural productivity: analyzing how technology adoption in one area influences neighboring farms across seasons.
How it works
How it works
Write the outcome y for unit i at time t as a linear function of the spatially lagged outcome of the same period (rho times the i-th element of W y_t), observed covariates X, unit effects mu_i, time effects lambda_t, and an idiosyncratic error epsilon_it. W is applied separately within each period. The error terms are usually assumed independent and identically distributed with zero mean and constant variance. This is the core ST-SAR equation.
Formula
y_t = \rho W y_t + X_t\beta + \mu + \iota_T\lambda_t + \varepsilon_t, \quad \varepsilon_t \sim \text{i.i.d.}(0,\sigma^2 I_N)Construct or choose a spatial weights matrix W (for example row-standardized contiguity or inverse distance) that encodes which units are neighbors. In this specification W is fixed across time; only the outcomes it multiplies change from period to period.
Because the spatial lag Wy is endogenous (outcomes depend on each other simultaneously), OLS is inconsistent. Estimate by maximum likelihood (ML) or by instrumental variables (IV/2SLS), using spatially lagged exogenous variables as instruments. With unit fixed effects, the data are usually demeaned (within transformation); the choice and properties of the estimator then depend on the panel length, so check the panel dimensions (N and T) against the estimator you use. When the model also contains a temporally lagged dependent variable, bias-corrected ML or GMM-type estimators are needed in short panels.
Examine the residuals for remaining spatial autocorrelation with Lagrange multiplier (LM) tests, such as LM-lag and LM-error and their robust versions. These tests were developed for cross-sectional data and may need adaptation to panel residuals. Check for cross-sectional dependence with a dedicated test suited to panels, and compare the fit of a spatial error or spatial Durbin specification. If LM-lag is significant and LM-error is not, the lag specification is supported; the reverse favors the error specification.
Decompose the effect of a covariate into direct effects (impact on the unit itself), indirect spillover effects (impact on neighboring units), and total effects. These are computed from the model's coefficients and W using the partial-derivative framework for spatial autoregressive models: the matrix of effects of covariate k is (I - rho W)^-1 times beta_k. The direct effect is the average of its diagonal elements, the total effect is the average row sum, and the indirect effect is the difference. Rho alone does not give the spillover effect.
Formula
\frac{\partial y}{\partial x_k'} = (I - \rho W)^{-1}\beta_k, \quad \text{direct} = \overline{\text{diag}}, \ \text{total} = \overline{\text{row sum}}, \ \text{indirect} = \text{total} - \text{direct}Common pitfalls
- Interpreting rho alone as the spillover effect. Rho does not separate direct from indirect effects, so the decomposition into direct, indirect and total effects is needed.
- Using OLS on the spatial lag model, which yields biased and inconsistent estimates because Wy is endogenous.
- Choosing W by trial and error to maximise fit rather than from prior spatial theory. Doing so can make the reported inference unreliable, because the specification was selected on the same data.
- Omitting time fixed effects when common shocks affect all units, which can inflate the estimated spatial dependence.
- Confusing the space-time spatial lag model with a distributed-lag time-series model. The lag here is spatial (neighbors at the same time), not temporal (past periods of the same unit).
Frequently asked questions
How is the space-time spatial lag model different from the standard (cross-sectional) spatial lag model?
The cross-sectional SAR models spatial dependence at a single point in time. The space-time version adds a time dimension, allowing estimation over multiple periods while controlling for unit fixed effects and time fixed effects. Temporal dynamics are not included unless a temporally lagged dependent variable is added explicitly.
How do I choose the spatial weights matrix W?
W should reflect the theoretical channel of interaction: contiguity (shared border), inverse distance, k-nearest neighbors, or economic distance. The choice must be motivated by prior theory, not data-driven optimization. Sensitivity analysis across two or three defensible W matrices is good practice.
Should I use fixed effects or random effects?
Fixed effects are preferred when unit-specific unobservables are likely correlated with covariates, which is a common concern in regional panels. A Hausman-type comparison adapted to spatial panels, with the spatial model estimated under both specifications, can inform the choice. Note that fixed effects absorb time-invariant regressors, so their coefficients cannot be estimated; random effects allow them but rely on the assumption that the unit effects are uncorrelated with the covariates.
What is the difference between the spatial lag and spatial error model, and how do I choose?
The spatial lag model treats spatial dependence as a substantive spillover effect (neighbors' outcomes cause your outcome). The spatial error model treats spatial dependence as nuisance correlation in the errors (common omitted factors). Lagrange multiplier tests after OLS can guide the choice: if LM-lag is significant but LM-error is not, prefer the lag model, and vice versa. If both are significant, consult the robust versions of the tests.
Can I include a temporally lagged dependent variable alongside the spatial lag?
Yes. Including both Wy_it and y_{i,t-1} gives a spatial dynamic panel model that captures spatial and temporal persistence together. This is a different specification from the spatial Durbin model, which adds spatially lagged covariates instead. Because the lagged dependent variable is correlated with the unit fixed effects, standard ML estimation is biased in short panels; bias-corrected ML or GMM-type estimators are needed.
Related methods
Sources
Anselin, L., Le Gallo, J., & Jayet, H. (2008). Spatial Panel Econometrics. In L. Matyas & P. Sevestre (Eds.), The Econometrics of Panel Data (pp. 625-660). Springer.
Open publication referenceElhorst, J. P. (2014). Spatial Econometrics: From Cross-Sectional Data to Spatial Panels. Springer.
ISBN: 978-3642403408