EconBase
← All papers

Bandwidth Selection for Spatial HAC Standard Errors

Alexander Lehner

arXiv 4 Mar 2026 · Econometrics

arXiv:2603.03997 · PDF · DOI · OpenAlex · Extracted main text

Abstract

Spatial autocorrelation in regression models can lead to downward biased standard errors and thus incorrect inference. The most common correction in applied economics is the spatial heteroskedasticity and autocorrelation consistent (HAC) standard error estimator introduced by Conley (1999). A critical input is the kernel bandwidth: the distance within which residuals are allowed to be correlated. However, this is still an unresolved problem and there is no formal guidance in the literature. In this paper, I first document that the relationship between the bandwidth and the magnitude of spatial HAC standard errors is inverse-U shaped. This implies that both too narrow and too wide bandwidths lead to underestimated standard errors, contradicting the conventional wisdom that wider bandwidths yield more conservative inference. I then propose a simple, non-parametric, data-driven bandwidth selector based on the empirical covariogram of regression residuals. In extensive Monte Carlo experiments calibrated to empirically relevant spatial correlation structures across the contiguous United States, I show that the proposed method controls the false positive rate at or near the nominal 5% level across a wide range of spatial correlation intensities and sample configurations. I compare six kernel functions and find that the Bartlett and Epanechnikov kernels deliver the best size control. An empirical application using U.S. county-level data illustrates the practical relevance of the method. The R package SpatialInference implements the proposed bandwidth selection method.

Citation extraction

36
references
57
in-text mentions
36
distinct cited
0
self-citations
8,092
main-text words

appendix boundary found by appendix_titled_section at “Appendix” · 83% of the source is main text. Read the extracted text to check this.

Most heavily cited references

The works this paper leans on most, across its whole bibliography — not restricted to papers in our corpus. Ranked by composite intensity, which combines how often a work is mentioned, how many sections mention it, and how much of that falls in the main text rather than the appendix.

ReferenceIntensityMentionsSectionsMain text
1Newey, Whitney and West, Kenneth (1987) A Simple, Positive Semi-definite, Heteroskedasticity and Autocorrelation Consistent Covariance Matrix0.92843100%
2Kelejian, Harry H. and Prucha, Ingmar R (2007) HAC Estimation in a Spatial Framework0.8434375%
3Conley, Timothy G (1999) GMM Estimation with Cross Sectional Dependence0.84333100%
4Kolokotrones, Thomas and Stock, James H. and Walker, Christopher D (2024) Is Newey–West Optimal among First-Order Kernels?0.84333100%
5Andrews, Donald W. K (1991) Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation0.81142100%
6Sun, Yixiao (2014) Let's Fix It: Fixed-b Asymptotics versus Small-b Asymptotics in Heteroscedasticity and Autocorrelation Robust Inference0.73732100%
7Pebesma, Edzer J (2004) Multivariable Geostatistics in S: The Gstat Package0.64422100%
8Bester, C. Alan and Conley, Timothy G. and Hansen, Christian B. and… (2016) Fixed-b Asymptotics for Spatially Dependent Robust Nonparametric Covariance Matrix Estimators0.58531100%
9Cressie, Noel (1993) Statistics for Spatial Data0.5112250%
10Kim, Min Seong and Sun, Yixiao (2011) Spatial Heteroskedasticity and Autocorrelation Consistent Estimation of Covariance Matrix0.51121100%

Showing the top 10 of 36 scored citations.