[Paper Review] SpatialPack: Computing the Association Between Two Spatial Processes
SpatialPack is an R package implementing efficient C-compiled routines for computing spatial association between two stochastic processes using Tjøstheim's rank-based correlation, Matheron's codispersion coefficient, and a modified t-test for hypothesis testing. The key contribution is a novel codispersion map for visualizing directional spatial correlation, enabling robust analysis of non-regular spatial grids and time series data with high computational performance.
An R package SpatialPack that implements routines to compute point estimators and perform hypothesis testing of the spatial association between two stochastic sequences is introduced. These methods address the spatial association between two processes that have been observed over the same spatial locations. We briefly review the methodologies for which the routines are developed. The core routines have been implemented in C and linked to R to ensure a reasonable computational speed. Three examples are presented to illustrate the use of the package with both simulated and real data. The particular case of computing the association between two time series is also considered. Besides elementary plots and outputs we also provide a plot to visualize the spatial correlation in all directions using a new graphical tool called codispersion map. The potential extensions of SpatialPack are also discussed.
Motivation & Objective
- To develop an efficient R package for computing spatial association between two spatial processes observed at the same locations.
- To address the limitations of standard correlation methods by incorporating spatial dependence through codispersion and rank-based measures.
- To provide a computational framework that handles non-regular spatial grids and time series data with high performance.
- To introduce a new graphical tool, the codispersion map, for visualizing directional spatial correlation.
- To support researchers in environmental science, geostatistics, and spatial econometrics with accessible, fast, and statistically sound tools.
Proposed method
- Implementation of Tjøstheim’s nonparametric correlation coefficient based on rank transformations of spatial processes.
- Computation of Matheron’s codispersion coefficient as a normalized cross-variogram, quantifying spatial cross-dependence at distance lag h.
- Use of a modified t-test for hypothesis testing of spatial association, adapted for regular and irregular spatial grids.
- Core routines coded in C for computational efficiency and linked to R via R API.
- Development of the codispersion map, a 2D visualization tool that computes and displays codispersion across all directions and lags on a spatial grid.
- Integration of Monte Carlo simulation to evaluate computational time and statistical power across varying sample sizes.
Experimental results
Research questions
- RQ1How can spatial association between two stochastic processes be accurately measured when observations are spatially dependent and defined on irregular grids?
- RQ2What is the performance of the codispersion coefficient in capturing directional spatial dependence across multiple angles and lags?
- RQ3How does the computational efficiency of the C-implemented routines scale with increasing sample size in spatial data analysis?
- RQ4Can the codispersion map effectively reveal directional patterns of spatial comovement in real-world datasets?
- RQ5To what extent can the proposed methods be extended to multivariate spatial processes beyond bivariate analysis?
Key findings
- The SpatialPack package achieves reasonable computational speed, with average processing time of 5 hours and 40 minutes for 512×512 image-sized datasets, due to C-compiled core routines.
- The codispersion map successfully visualizes directional spatial correlation, revealing a peak codispersion of approximately 0.7 at 45° in the Murray smelter site dataset.
- The Monte Carlo simulation study confirms that computational time scales efficiently with sample size, supporting use on large spatial datasets.
- The application to the Murray smelter site dataset demonstrates strong spatial comovement between arsenic and lead concentrations, with codispersion peaking at 45°.
- The modified t-test and codispersion coefficient show robust performance in both simulated and real data, including time series applications.
- Future extensions, including Nadaraya-Watson estimation of codispersion and codispersion matrix computation for multivariate processes, are feasible and planned for upcoming versions.
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.