Space-Time Spatial Error Model

Statistics
Introduced by
Anselin (1988); panel extension by Elhorst (2003, 2014)
Year
1988 (SEM); 2003 (panel/space-time extension)
Type
Spatial panel regression
Family
GIS / spatial

What does it do?

The Space-Time Spatial Error Model (space-time SEM) is a spatial panel regression technique that accounts for spatial dependence confined to the error term across geographic units and time periods.

It corrects biased inference caused by spatially correlated disturbances while estimating covariate effects on a panel of spatial observations.

The intuition behind the method

In many social and environmental datasets, unobserved factors spill across neighboring regions: pollution drifts, economic shocks propagate, disease spreads. If these spillovers are not modeled, the regression errors of nearby units will be correlated, which inflates standard errors and distorts hypothesis tests. The space-time SEM absorbs this correlated noise into the error structure using a spatial weights matrix that encodes neighborhood relationships, so that inference on the covariate coefficients is not distorted by it. When time effects are included, the model can further separate spatial error dependence from common temporal shocks.

History

The Spatial Error Model was introduced by Luc Anselin in his 1988 monograph Spatial Econometrics: Methods and Models, which set out a framework for spatial regression including spatial error dependence. The extension to panel (space-time) data is associated with J. Paul Elhorst's work from 2003 onward. Spatial panel specifications, including the space-time SEM, are treated in the spatial panel econometrics literature.

When to use it

Use the space-time SEM when you have panel data covering several regions over several time periods, and Lagrange Multiplier tests applied to the OLS residuals point to spatial error dependence rather than spatial lag dependence. This fits when the mechanism is contamination of errors, such as shared local shocks or spillovers in unobserved factors, so that neighboring units do not directly affect each other's outcomes. Do not use it when the substantive interest is the size of cross-unit spillovers in the outcome; the spatial lag or spatial Durbin panel model is more suitable then. It is also less suitable when neighborhood relationships change substantially over time, when the weights matrix is hard to justify, or when the panel has few time periods, since the time dimension then carries little information about the time-related components.

Limitations and considerations

  • Choice of spatial weights matrix W is subjective and results can be sensitive to this specification.
  • Does not model substantive spatial spillovers in the dependent variable; if peer effects are the interest, the spatial lag model is more appropriate.
  • Maximum likelihood estimation can be computationally intensive for large N or T.
  • Requires stationarity assumptions in the spatial error process; non-stationarity in space or time complicates inference.
  • The lambda parameter captures aggregate spatial error dependence but does not vary across units or time.

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

Strengths

  • Corrects invalid standard errors and inference caused by spatially correlated disturbances in panel data.
  • Unit fixed effects can be included to control for time-invariant unit heterogeneity before the error dependence parameter lambda is estimated.
  • Gives efficient estimates of the covariate coefficients (beta) under correct specification, because the variance structure of the error term is modeled explicitly.
  • Panel spatial error estimators are offered by several statistical packages, but support for the specific space-time specification varies, and every package requires a pre-computed spatial weights matrix; check current documentation before use.
  • Can be extended with two-way fixed effects to additionally control for common temporal shocks.

Applications

  • Regional economics: estimating labor market or productivity covariate effects while controlling for spatially correlated local shocks across provinces or counties over time.
  • Environmental science: modeling pollution or temperature outcomes across monitoring stations over years, correcting for spatially autocorrelated measurement errors.
  • Epidemiology: estimating determinants of disease rates in a spatial panel when spatially correlated reporting noise or unobserved local risk factors affect neighboring units.
  • Urban studies: analyzing housing price determinants across neighborhoods and years when unobserved neighborhood quality is spatially correlated.
  • Political science: estimating voting behavior predictors across electoral districts over multiple elections while absorbing regional cultural clustering in residuals.
  • Agricultural economics: modeling crop yield responses to policy or climate variables across a grid of spatial units over growing seasons.

How it works

How it works

1

The outcome for unit i at time t is modeled as a linear function of covariates plus a spatially autocorrelated error term u_it. The covariates capture direct covariate effects; the error structure captures spatial dependence from omitted spatially correlated variables.

Formula
y_t = X_t\beta + u_t,\; u_t = \lambda W u_t + \varepsilon_t
2

The error vector u_t follows a first-order spatial autoregressive process: u_t = lambda W u_t + epsilon_t, where W is the row-standardized spatial weights matrix, lambda is the spatial error autocorrelation parameter, and epsilon_t are i.i.d. disturbances. A positive lambda signals that neighboring units share unobserved influences.

Formula
u_t = \lambda W u_t + \varepsilon_t,\; \varepsilon_t \sim N(0, \sigma^2 I_N)
3

A spatial weights matrix W encodes which units are neighbors (e.g., contiguity, inverse-distance, or k-nearest neighbors). Row-standardization ensures each row sums to one, so the spatially lagged error is a weighted average of neighboring errors.

4

Estimation is typically by maximum likelihood (ML) or generalized method of moments (GMM) applied to the panel. Unit and time fixed effects can be included so that time-invariant unit heterogeneity and common time shocks are controlled for when lambda is estimated. The model assumes that the covariates are uncorrelated with the disturbances; if regressors are endogenous, an instrumental-variable or GMM spatial estimator is needed. The form of the panel error also matters: spatial dependence applied only to the time-varying remainder error implies a different spillover mechanism from dependence that also operates on the unit-specific effects, so the choice should rest on theoretical grounds.

5

After estimation, Lagrange Multiplier tests are used to compare spatial error dependence with spatial lag dependence. Run the LM-error and LM-lag tests on the OLS residuals; if both are significant, use the robust versions (robust LM-error and robust LM-lag) to choose between the two models. Moran's I on the residuals is a descriptive check of whether residual spatial autocorrelation remains, but on its own it does not tell error dependence apart from lag dependence. Information criteria (AIC, BIC) can compare the space-time SEM with pooled OLS or the spatial lag panel model. For the error process to be stationary, lambda must lie within the inverse of the minimum and maximum eigenvalues of W.

Common pitfalls

  • Using a contiguity-only weights matrix when true spatial dependence operates at a different scale; alternative W specifications should be tested.
  • Omitting unit or time fixed effects when unobserved heterogeneity is present, which may confound the spatial error parameter lambda.
  • Interpreting a significant lambda as evidence of substantive spillovers; it reflects spatially correlated omitted variables, not causal neighbor effects.
  • Skipping the Lagrange Multiplier test to distinguish SEM from the spatial lag model before committing to a specification.
  • Applying the model to panels with very few time periods, where the time dimension gives too little variation to separate spatial and temporal components.

Frequently asked questions

How is the space-time SEM different from the space-time spatial lag model?

In the spatial lag panel model the spatially lagged dependent variable W*y enters the right-hand side, capturing direct spillovers in the outcome. In the space-time SEM the spatial dependence is entirely in the error term, meaning neighboring units share unobserved influences rather than directly affecting each other's outcomes. The Lagrange Multiplier test helps select between them.

How do I choose the spatial weights matrix W?

Common choices are queen or rook contiguity (binary adjacency), inverse-distance weighting, or k-nearest neighbors. Theory should guide the choice: contiguity may suit administrative spillovers, and distance may suit economic or environmental diffusion. Row-standardize W as the model specification assumes, and compare results under alternative specifications as a robustness check.

Can I include both unit and time fixed effects in the space-time SEM?

Yes. Two-way fixed effects (individual and time dummies) control for time-invariant unobserved heterogeneity and common temporal shocks, respectively, before the spatial error parameter lambda is interpreted. Including both is often considered when both sources of omitted variation are plausible. Because lambda estimates can change when fixed effects are added or removed, the specification should be checked under each choice.

What does a significant lambda mean?

A significant and positive lambda indicates that the unobserved factors driving the outcome are spatially clustered, so neighboring units tend to have correlated errors. It does not imply that unit i's outcome directly depends on unit j's outcome; that would require the spatial lag model.

Which software packages support the space-time SEM?

Several statistical software packages offer spatial panel estimators, but support for the specific space-time SEM specification varies. Check each package's current documentation before relying on it. All of them require a pre-computed spatial weights matrix W.

Related methods

Sources

  1. Anselin, L. (1988). Spatial Econometrics: Methods and Models. Kluwer Academic Publishers.

    ISBN: 978-9024737247
  2. Elhorst, J. P. (2014). Spatial Econometrics: From Cross-Sectional Data to Spatial Panels. Springer.

    ISBN: 978-3642403392