- Introduced by
- Elhorst; Lee & Yu
- Year
- 2014
- Type
- Spatial econometric panel model
What does it do?
The spatial panel model is a family of econometric models for panel data, in which the same units are observed over several periods, and outcomes can depend on those of neighbouring units.
It combines a fixed- or random-effects panel structure with a spatial lag, spatial error, or spatial Durbin component. Estimation of spatial autoregressive panel models with fixed effects is treated in Lee and Yu (2010), and the lag, error, and Durbin specifications are set out in Elhorst (2014).
The intuition behind the method
Ordinary panel models treat each unit as independent of the others, but neighbouring places often influence one another: growth in one region may spill over into adjacent regions, and pollution can drift across borders. The spatial panel model adds a spatial weight matrix W, which records which units are neighbours. The outcome of one unit can then depend on its neighbours' outcomes (the lag term) or its unobserved shocks can be correlated with theirs (the error term), while each unit keeps its own fixed or random effect over time.
History
Spatial panel econometrics extends spatial cross-sectional methods to data with both a unit and a time dimension. Lee and Yu (2010) provide estimation theory for spatial autoregressive panel models with fixed effects. Elhorst's book Spatial Econometrics: From Cross-Sectional Data to Spatial Panels (2014) sets out the lag, error, and Durbin specifications for spatial panels.
When to use it
Use a spatial panel model when you have panel data (the same units measured over several periods), a continuous outcome, and either geographic coordinates or a defined neighbourhood structure from which W can be built. It suits questions where outcomes plausibly spill over between neighbouring units, such as regional economic growth, housing prices, or pollution. Do not use it without a defined W, for a single cross-section (where a spatial cross-sectional model is the relevant alternative), or when there is no reason to expect spatial dependence. Standard OLS is a useful benchmark. Under a spatial lag, OLS estimates are biased and inconsistent, and under spatial error they are inefficient. Large differences between OLS and spatial error model estimates can signal specification problems such as omitted variables or an omitted spatial lag, so the spatial model should be compared with OLS. Choose between fixed and random effects with a Hausman test. Breusch-Pagan LM tests assess spatial autocorrelation and random individual effects, and they can guide the choice of spatial specification. No fixed minimum sample size is established in the cited sources. Adequate size depends on the number of units, the number of periods, and the spatial structure of W.
Limitations and considerations
- The spatial terms depend entirely on W. Results change with the choice of neighbourhood definition, and the model assumes W is constant over time.
- The equation given for this method is static. Specifications with a lagged dependent variable need different estimation (bias-corrected LSDV or GMM) and are outside the formula shown.
- With fixed effects, plain LSDV can be biased in dynamic specifications, so the estimator must match the model structure.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The lag term rho lets the outcome in one unit respond to its neighbours' outcomes, a spillover channel that standard panel models omit.
- The error term lambda allows unobserved shocks to be correlated across neighbours, so spatial dependence in the disturbances is modelled directly rather than ignored.
- Fixed and random effects can both be used, so unobserved unit heterogeneity is handled alongside neighbourhood dependence.
Applications
- Modelling regional economic growth where prosperity spills over between neighbouring provinces or countries.
- Explaining housing prices that move together across adjacent districts.
- Studying environmental pollution that drifts across administrative boundaries over time.
How it works
How it works
The outcome y for unit i at time t depends on its own predictors x times beta, on a unit-specific effect mu (fixed or random), and on the spatial weighted average of neighbours' outcomes through the parameter rho. Unobserved shocks u follow a spatial error process with parameter lambda, so they can be correlated across neighbours as defined by W. The equation as given here is static and contains no lagged dependent variable. The equation shown combines a spatial lag (rho) and a spatial error (lambda) in one specification. Setting lambda to zero gives the spatial lag model, and setting rho to zero gives the spatial error model. The spatial Durbin model adds spatially lagged predictors, W x gamma, which do not appear in the equation shown. Results should be reported with the equation that was actually fitted. Because y appears on both sides of the equation through the spatial lag term, a change in x for one unit affects its neighbours, and their responses feed back to it. For this reason, beta is not the total effect of x whenever rho is not zero. The total effect consists of direct effects (on the unit itself) and indirect effects (spillovers to neighbours). These must be computed from the estimated model, with rho and lambda reported alongside them.
Formula
y_{it} = \rho \sum_{j} w_{ij} y_{jt} + x_{it}\beta + \mu_i + u_{it}, \quad u_{it} = \lambda \sum_{j} w_{ij} u_{jt} + \varepsilon_{it}The spatial parameters (rho, lambda) and the slope coefficients beta are estimated by maximising the likelihood of the panel, given the data and the weight matrix W. The source cited for this step, Lee and Yu (2010), covers estimation of spatial autoregressive panel models with fixed effects. Dynamic specifications, which include a lagged outcome, are not covered by the equation above and require bias-corrected or GMM-type estimation.
Formula
\hat{\theta} = \arg\max_{\theta} \; \ln L(\theta \mid y, X, W)Common pitfalls
- Running the model without coordinates or a neighbourhood structure. Without a defined W the spatial terms have no content, and a standard fixed-effects panel model is the appropriate alternative.
- Choosing the spatial specification (lag, error, or Durbin) by habit rather than letting LM tests guide the choice.
- Choosing fixed versus random effects without a Hausman test.
- Estimating a dynamic spatial panel with plain LSDV and ignoring the bias introduced by the lagged dependent variable.
- Reading the slope coefficient on x as the total effect of x. When rho is not zero, feedback through W means the total effect includes spillovers to neighbours, so direct and indirect effects must be computed from the estimated model.
Frequently asked questions
How do I choose between fixed and random effects?
Use a Hausman test, as in ordinary panel models. If the unit effects are correlated with the regressors, fixed effects are preferred; otherwise random effects are more efficient.
What is the difference between the spatial lag, error, and Durbin specifications?
The spatial lag model lets a unit's outcome depend on its neighbours' outcomes (the rho term), with lambda set to zero. The spatial error model lets unobserved shocks be correlated across neighbours (the lambda term), with rho set to zero. The spatial Durbin model also adds spatially lagged predictors, W x gamma. The equation on this page includes both rho and lambda. Breusch-Pagan LM tests can guide the choice of specification.
What sample size and panel shape do I need?
The cited sources do not set a fixed minimum sample size or a required panel shape. Adequate precision depends on the number of units, the number of periods, and the spatial structure of W, which is treated as constant over time.
What if my data has no coordinates?
Without coordinates or a defined neighbourhood structure you cannot build the spatial weight matrix W, so a spatial panel model cannot be specified. Use a standard fixed-effects panel model instead.
Related methods
Sources
Elhorst, J. P. (2014). Spatial Econometrics: From Cross-Sectional Data to Spatial Panels. Springer.
Open DOI referenceLee, L. F., & Yu, J. (2010). Estimation of Spatial Autoregressive Panel Data Models with Fixed Effects. Journal of Econometrics, 154(2), 165–185.
Open DOI referenceApplied Spatial Statistics and Econometrics Data Analysis in R by Katarzyna Kopczewska (2021), page not supplied in passage