[Paper Review] Tutorial on kernel estimation of continuous spatial and spatiotemporal relative risk with accompanying instruction in R
This paper presents a comprehensive tutorial on kernel-based estimation of continuous spatial and spatiotemporal relative risk, integrating advanced nonparametric methods with practical implementation in the R package sparr. It enables researchers to estimate and test for statistically significant disease risk fluctuations across space and time, using adaptive bandwidths, edge correction, and both asymptotic and bootstrap-based inference, with applications to real epidemiological datasets on PBC and FMD.
Kernel smoothing is a highly flexible and popular approach for estimation of probability density and intensity functions of continuous spatial data. In this role it also forms an integral part of estimation of functionals such as the density-ratio or "relative risk" surface. Originally developed with the epidemiological motivation of examining fluctuations in disease risk based on samples of cases and controls collected over a given geographical region, such functions have also been successfully employed across a diverse range of disciplines where a relative comparison of spatial density functions has been of interest. This versatility has demanded ongoing developments and improvements to the relevant methodology, including use spatially adaptive smoothers; tests of significantly elevated risk based on asymptotic theory; extension to the spatiotemporal domain; and novel computational methods for their evaluation. In this tutorial paper we review the current methodology, including the most recent developments in estimation, computation and inference. All techniques are implemented in the new software package sparr, publicly available for the R language, and we illustrate its use with a pair of epidemiological examples.
Motivation & Objective
- To provide a practical, accessible tutorial on kernel estimation of continuous spatial and spatiotemporal relative risk for applied researchers.
- To address methodological challenges in nonparametric smoothing, including bandwidth selection, edge correction, and spatial adaptivity.
- To extend classical fixed-bandwidth kernel methods to adaptive and spatiotemporal settings with improved inference.
- To implement and validate advanced techniques—such as joint bandwidth optimization and p-value surface computation—via a new R package, sparr.
- To support multidisciplinary research by enabling detection of statistically significant risk hotspots in spatial and spatiotemporal point process data.
Proposed method
- Employs fixed and spatially adaptive kernel smoothing for estimating spatial and spatiotemporal intensity and density functions.
- Uses kernel density-ratio estimation to compute relative risk surfaces, comparing case distributions to control (at-risk) populations.
- Applies multiple bandwidth selection methods: least-squares cross-validation (LSCV), likelihood cross-validation (LIK), and bootstrap (BOOT) for optimal smoothing.
- Incorporates edge correction to reduce bias near study region boundaries in spatial and spatiotemporal density estimation.
- Implements both asymptotic and Monte Carlo p-value surfaces to test for statistically significant risk fluctuations in estimated relative risk maps.
- Utilizes the sparr R package to unify and automate the workflow, including slicing spatiotemporal risk surfaces and visualizing results.
Experimental results
Research questions
- RQ1How can kernel smoothing be used to estimate continuous spatial relative risk while accounting for spatially heterogeneous population at risk?
- RQ2What are the most effective bandwidth selection strategies for spatially adaptive kernel estimation of relative risk?
- RQ3How can spatiotemporal relative risk be estimated and tested for significance in a computationally efficient and statistically valid manner?
- RQ4What are the implications of using symmetric versus asymmetric kernel estimators in adaptive smoothing for relative risk?
- RQ5How can p-value surfaces be computed efficiently to identify statistically significant risk hotspots in space and time?
Key findings
- The sparr R package successfully implements advanced kernel-based methods for spatial and spatiotemporal relative risk estimation, including adaptive smoothing and joint bandwidth selection.
- Spatially adaptive smoothing significantly improves risk surface estimation in regions of variable observation density compared to fixed-bandwidth methods.
- Bootstrap-based bandwidth selection demonstrated greater stability than leave-one-out approaches in the authors’ experience, particularly for complex risk surfaces.
- The inclusion of edge correction and time-varying denominators in spatiotemporal models enhances accuracy in risk estimation for real-world epidemiological data.
- Asymptotic and Monte Carlo p-value surfaces provide reliable inference, enabling detection of statistically significant risk fluctuations without relying on simulation for every test.
- The method successfully identified non-random clustering of PBC cases and FMD outbreaks, revealing significant spatial and temporal risk patterns consistent with known epidemiological dynamics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.