Panel Geographically Weighted Regression (Panel GWR)

Statistics
Introduced by
Fotheringham, Brunsdon & Charlton (foundational GWR); panel extension developed in spatial econometrics literature
Year
2000s–2010s
Type
Local spatial regression with panel structure
Family
GIS / spatial

What does it do?

Panel Geographically Weighted Regression (Panel GWR) extends geographically weighted regression to georeferenced panel data, so that regression coefficients are estimated locally for each spatial unit using kernel weights based on distance.

The model's formula includes a unit-specific term that absorbs unobserved, time-invariant differences between units. Its purpose is to detect spatially non-stationary relationships in repeated observations of the same locations.

The intuition behind the method

Standard regression assumes one relationship between predictors and outcome across the whole study area. GWR relaxes this by fitting a separate weighted regression at each location, where nearby observations receive larger weights and distant ones smaller weights. Panel GWR applies this local approach to data in which the same units are observed repeatedly. A unit-specific term is included so that stable differences between units are not attributed to the predictors. As written, the coefficients are indexed by location only, so the specification estimates how relationships vary across space; it does not by itself let them change over time.

History

Geographically Weighted Regression was formalised by Fotheringham, Brunsdon and Charlton and set out in their 2002 Wiley monograph. Multiscale GWR, which allows a separate bandwidth for each covariate, was extended to inference on local parameters by Yu et al. (2020), who derived standard errors for local parameters within that framework.

When to use it

Use Panel GWR when you have georeferenced data for the same spatial units over several time periods and you suspect that the relationship between predictors and the outcome differs across space. It suits applied questions in regional economics, public health, environmental science, or urban studies, where local context may change the size of an effect. Each location needs enough nearby observations for its local fit to be stable, so the number of spatial units should be large relative to the number of local predictors. Do not use Panel GWR when there is no evidence of spatial non-stationarity: if the relationship is spatially constant, a standard panel regression is simpler and easier to interpret. Avoid it when spatial coverage is sparse, when predictors are highly collinear, or when the number of spatial units or time periods is small, because local estimation is then unstable.

Limitations and considerations

  • Weighted least squares is repeated at every location, so computation grows with the number of spatial units.
  • As specified, the coefficients are indexed by location only, so temporal change in the local relationships is not modelled.
  • Local coefficient estimates are unstable when the kernel-weighted sample at a location is small or when the local design matrix is close to singular, as the inverse in the formula then becomes unreliable.
  • Standard errors for local coefficients in the panel setting are not established by the cited work. Yu et al. (2020) derive standard errors for local parameters in multiscale GWR, but their abstract does not address a panel structure, so local uncertainty for Panel GWR needs separate justification.

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

Strengths

  • Estimates coefficients for each location, so the maps show where a relationship is stronger, weaker, or absent across the study area.
  • The unit-specific term in the model controls for time-invariant differences between spatial units, which a purely cross-sectional GWR does not do.
  • Adaptive bandwidths can adjust to uneven observation density, so sparse and dense parts of the study area are not smoothed in the same way.
  • The local coefficient maps can be used to see where a predictor's association with the outcome varies, which global panel coefficients cannot show.

Applications

  • Regional economics: examining whether the association between a policy variable and an economic outcome differs across administrative regions observed over several years.
  • Public health: examining whether the association between socioeconomic deprivation and disease incidence differs across geographic areas, using repeated records linked to those areas.
  • Environmental science: examining whether a land-use variable is associated with an ecosystem outcome in different parts of a landscape, using repeated observations of the same locations.
  • Urban studies: examining whether the association between transit accessibility and property values differs across neighbourhoods, using repeated property records.

How it works

How it works

1

For unit i at time t, the outcome is modelled as an intercept and slope coefficients that depend on the unit's coordinates (u_i, v_i), plus a unit-specific term μ_i capturing unobserved heterogeneity that does not change over time, and an error term. The coefficients are indexed by location only, not by time.

Formula
y_{it} = \beta_0(u_i, v_i) + \sum_k \beta_k(u_i, v_i) x_{itk} + \mu_i + \varepsilon_{it}
2

A kernel function assigns each observation a weight that declines with its distance d_ij from the target location. The formula in this step uses a Gaussian kernel, in which the bandwidth h sets how quickly the weights fall off. A small bandwidth gives highly local estimates, while a large bandwidth moves the fit toward a global model. The numerical scale of h depends on the kernel parametrisation, so bandwidth values are comparable only under the same convention.

Formula
w_{ij} = \exp\left(-\frac{d_{ij}^2}{h^2}\right)
3

At each location, the coefficients are obtained by weighted least squares, with a diagonal weight matrix W(u_i, v_i) containing the kernel weights. Repeating this at every location gives a separate set of coefficient estimates for each location in the dataset. The expression is written for untransformed X and y and does not include μ_i.

Formula
\hat{\beta}(u_i, v_i) = (X^\top W(u_i,v_i) X)^{-1} X^\top W(u_i,v_i) y
4

Bandwidths are commonly chosen by cross-validation or by minimising the corrected Akaike Information Criterion (AICc), which balances fit against model complexity. Adaptive bandwidths, which adjust to local data density, are generally preferred when observations are unevenly distributed across the study area.

5

The unit-specific term μ_i is a fixed effect for each spatial unit. It absorbs differences between units that do not change over time, so stable unit characteristics are not attributed to the predictors. The exact estimator for μ_i within each local fit, including whether the data are transformed before local estimation, is not specified here and should be confirmed against the source model or the software documentation before use.

Common pitfalls

  • Fitting Panel GWR without first comparing it with a global panel model; if spatial variation is absent, the local coefficients add noise rather than insight.
  • Assuming the unit-specific term removes serial correlation. Fixed effects control for time-invariant unit differences, not for correlation of errors over time, so residuals should still be checked.
  • Ignoring collinearity among predictors, which inflates the variance of local coefficients and can create spatial patterns in the coefficient maps that reflect estimation noise.
  • Reading the local coefficient maps as temporal trends when, as written, the coefficients have no time index.
  • Reporting or mapping local coefficients without any measure of their local precision, which makes apparent spatial differences hard to evaluate.

Frequently asked questions

How is Panel GWR different from standard GWR?

Standard GWR is usually applied to a single cross-section of spatial data. Panel GWR applies the same local weighting to repeated observations of the same units and adds a unit-specific term (μ_i in the mechanics formula) to absorb time-invariant differences between units. As written, the coefficients are indexed by location only, so the specification does not by itself allow coefficients to change over time.

How do I choose between a fixed-bandwidth and an adaptive bandwidth?

Adaptive bandwidths are generally preferred when spatial units are unevenly distributed across the study area, because they include more neighbours where data are sparse and fewer where data are dense. Fixed bandwidths assume roughly uniform data density. Cross-validation or AICc can be used to compare the alternatives, as described in the bandwidth selection step.

Can Panel GWR handle both spatial and temporal autocorrelation?

Kernel weighting shapes each local fit but does not remove spatial autocorrelation from the residuals, so residual spatial correlation should be tested after fitting. The unit-specific term does not remove serial correlation within units over time either, so residuals should also be tested for temporal correlation. If either is present, the model needs an extension, such as a space-time GWR, which is outside the specification described here.

What software supports Panel GWR?

No specific software package is named here. Before using any tool, check its documentation to confirm that it handles a panel structure and the bandwidth and effects options you need.

How many spatial units do I need for reliable Panel GWR estimates?

There is no single minimum that applies to every study. Local estimates are reliable only when each location's kernel-weighted sample is large enough to identify its coefficients, so check local sample sizes and the stability of the local estimates rather than relying on a fixed rule. Spatial coverage is usually the main constraint.

Related methods

Sources

  1. Fotheringham, A. S., Brunsdon, C., & Charlton, M. (2002). Geographically Weighted Regression: The Analysis of Spatially Varying Relationships. Wiley.

    ISBN: 978-0471496168
  2. Yu, H., Fotheringham, A. S., Li, Z., Oshan, T., Kang, W., & Wolf, L. J. (2020). Inference in Multiscale Geographically Weighted Regression. Geographical Analysis, 52(1), 87–106.

    Open DOI reference