- Introduced by
- Fotheringham, Yang & Kang (MGWR base); panel extension developed in spatial econometrics literature
- Year
- 2017-2020
- Type
- Spatially varying coefficient panel regression
- Family
- GIS / spatial
What does it do?
Panel MGWR is a user-constructed extension of Multiscale Geographically Weighted Regression (MGWR) to repeated-observation (panel) data.
Each predictor operates at its own spatial bandwidth, and unit-specific and time-specific fixed effects are added. It is relevant when spatial heterogeneity and repeated measurement both matter. The cited sources cover MGWR and its inference, not the panel version itself.
The intuition behind the method
Standard GWR fits one bandwidth for all relationships, assuming every predictor varies at the same spatial scale. MGWR relaxes this by giving each predictor its own bandwidth, so one effect may be close to global while another is strongly local. The panel extension adds a time dimension and controls for stable unit-level and time-level differences through fixed effects. As written in the model formula, the coefficients carry no time index, so the method describes how a relationship varies across space within the panel window; it does not model coefficients that change from year to year.
History
Multiscale GWR was introduced by Fotheringham, Yang, and Kang in 2017 as a generalization of standard GWR that estimates a separate bandwidth for each predictor by back-fitting. Yu et al. (2020; available online in 2019) provided analytical inference for MGWR local parameters. Panel MGWR is best understood as an extension of these methods built by analysts, combining MGWR with fixed effects, and no single originating publication is cited here.
When to use it
Use Panel MGWR when observations are georeferenced and repeated over several time periods, and you expect at least one predictor's effect to vary across space, possibly at a different scale from the other predictors. It suits questions where both location and repeated measurement matter, such as regional or urban panels. Do not use it for cross-sectional data, where standard MGWR applies. Avoid it when observations per location and period are too few for stable local fits, when relationships are plausibly spatially uniform (a global panel model is simpler and more efficient), when you need coefficients that change over time (this specification holds them constant), or when iterative back-fitting is impractical for the size of your data. Because the panel specification is not backed by a dedicated verified source, validate it, for example with simulation or comparison against simpler models.
Limitations and considerations
- Computationally intensive due to iterative back-fitting across multiple bandwidths; large panels with many predictors can be very slow.
- Requires sufficient spatial replication; if observations are sparse or unevenly distributed, local estimates in data-thin areas are unreliable.
- Inference was developed for cross-sectional MGWR; its reliability in panel settings is not established, so significance tests are approximate.
- Assumes that relationships are stationary in time within the panel window, or that temporal change is fully captured by time fixed effects.
- Results are sensitive to the choice of kernel function and bandwidth selection criterion.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Allows each predictor to operate at its own spatial scale, revealing which effects are global versus locally heterogeneous.
- Controls for unit- and time-specific fixed effects, preventing stable omitted variables from confounding the spatially varying estimates.
- Produces a rich set of local coefficient maps that make spatial heterogeneity visually and analytically accessible.
- More parsimonious than standard GWR when some predictors are truly global, as their bandwidth converges to the full study area.
- Combines the interpretability of panel regression with the spatial flexibility of geographically weighted methods.
Applications
- Analyzing how the spatial determinants of house prices — income, density, school quality — operate at different geographic scales across multiple years.
- Studying regionally heterogeneous effects of environmental policy on emissions panels of countries or provinces.
- Examining spatially varying predictors of public health outcomes (e.g., obesity, mortality) in longitudinal administrative data.
- Modeling urban growth dynamics where land-use drivers may be local while macroeconomic drivers are regional, observed across census waves.
- Investigating spatially non-stationary returns to education or labor market outcomes in regional panel datasets.
How it works
How it works
The model specifies a spatially varying coefficient for each predictor k, evaluated at the coordinates (u_i, v_i) of unit i. Unit effects mu_i and time effects lambda_t absorb stable unobserved differences. Because the coefficients have no time index, they are treated as constant over the panel window.
Formula
y_{it} = \sum_{k} \beta_k(u_i, v_i) x_{kit} + \mu_i + \lambda_t + \varepsilon_{it}Each predictor k receives its own bandwidth h_k. The bandwidth vector is found by a back-fitting algorithm that optimizes a model-fit criterion (Fotheringham et al., 2017). The corrected Akaike Information Criterion (AICc) is common in implementations, but confirm the criterion in the software you use. Larger bandwidths produce estimates close to global effects, while smaller bandwidths allow more local variation. This step is an iterative procedure and has no single closed-form equation.
Coefficients are obtained iteratively by back-fitting, not in a single regression. In each pass, predictor k uses its own bandwidth h_k to build a diagonal kernel weight matrix W_k(h_k) (for example bisquare or Gaussian) for each location. The displayed weighted least squares expression is the per-covariate update inside that loop, applied to the current partial residuals, and is not the full MGWR estimator. The fixed-effect terms are not shown here and are handled in the fixed-effects step.
Formula
\hat{\beta}_k(u_i,v_i) = (X^\top W_k(u_i,v_i) X)^{-1} X^\top W_k(u_i,v_i) yUnit and time effects are removed either by demeaning the variables (the within transformation) or by including dummy variables for units and periods, so that stable confounders do not bias the local coefficients. This step is conceptual. How the transformation interacts with locally weighted estimation is not established in the cited sources, so check the exact procedure against the software or code you use.
For MGWR local parameters, Yu et al. (2020) derive analytical standard errors by reframing GWR and MGWR as a Generalized Additive Model. They also give the effective number of parameters, both overall and per covariate. Report these values: they are needed to compare MGWR with GWR and global models, and to adjust for the many local hypothesis tests. Their validity for panel data is not established in the cited sources, so treat significance results as approximate. This step is conceptual and has no single equation.
Common pitfalls
- Interpreting local coefficients as causal without accounting for spatial endogeneity or omitted spatial confounders.
- Using a uniform bandwidth for all predictors (reverting to standard GWR logic) and losing the multiscale advantage.
- Failing to check whether the panel is balanced and whether fixed effects are appropriate versus random effects for your research question.
- Over-interpreting spatial patterns in coefficient maps for locations at the edge of the study area, where kernel weights draw on fewer observations.
- Neglecting to test for global spatial autocorrelation in residuals (e.g., Moran's I on residuals) after fitting the model.
Frequently asked questions
How does Panel MGWR differ from standard panel GWR?
A GWR-style panel model uses a single bandwidth for all predictors. MGWR estimates a separate bandwidth per predictor via back-fitting, so some effects can be nearly global while others are highly local. The fixed-effects component is handled in the same way in both.
How do I choose between unit fixed effects and time fixed effects?
Unit fixed effects control for time-invariant unit-level confounders (e.g., geography, culture). Time fixed effects absorb common shocks affecting all units in a given period. Two-way fixed effects are a common choice when both concerns apply, but they need enough within-unit and within-period variation. With few units or periods they can absorb most of the identifying variation and make local coefficients unstable.
What software can run Panel MGWR?
The Yu et al. (2020) paper links to MGWR1.0 software, which implements MGWR with the inferential framework described there. Panel fixed effects are not assumed to be built in, so they are usually added by the user through demeaning or dummy variables before estimation. Check the current capabilities of any package before relying on it.
What sample size is recommended?
No minimum sample count is established. Local estimates become unstable where few observations fall within a location's kernel, so check the effective number of observations in sparse areas. Additional time periods help estimate the time effects but do not substitute for spatial density.
Should I test for spatial autocorrelation before using Panel MGWR?
Yes. A global Moran's I test on OLS or panel-OLS residuals confirms whether spatial structure exists and motivates the spatially varying approach. After estimation, testing residuals from Panel MGWR with Moran's I checks whether the model has adequately absorbed spatial non-stationarity.
Related methods
Sources
Fotheringham, A. S., Yang, W., & Kang, W. (2017). Multiscale Geographically Weighted Regression (MGWR). Annals of the American Association of Geographers, 107(6), 1247-1265.
Open DOI referenceYu, 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