The R Journal: accepted article

This article will be copy edited and may be changed before publication.

SPNETWORK, A PACKAGE FOR NETWORK KERNEL DENSITY ESTIMATION PDF download
Jeremy Gelb

Abstract This paper introduces the new package spNetwork that provides functions to perform Network Kernel Density Estimate analysis (NKDE). This method is an extension of the classical Kernel Density Estimate (KDE), a non-parametric approach to estimate the intensity of a spatial process. More specifically, it adapts the KDE for cases when the study area is a network, constraining the location of events (such as accidents on roads, leaks in pipes, fish in rivers, etc.). We present and discuss in this paper the three main versions of NKDE: simple, discontinuous and continuous, that are implemented in spNetwork. We illustrate how to apply the three methods and map their results using a sample from a real dataset representing bike accidents in a central neighbourhood of Montreal. We also describe the optimization techniques used to reduce calculation time and investigate their impacts when applying the three NKDE to a city wide dataset.

Received: 2021-02-15; online 2021-12-15, supplementary material, (10.1 Mb)
CRAN packages: spNetwork, spatstat, rgdal, sp, rgeos, maptools, igraph, Rcpp, future, SpNetwork, SearchTrees, future.apply, RcppArmadillo
CRAN Task Views cited directly: Spatial
CRAN Task Views implied by cited CRAN packages: Spatial, HighPerformanceComputing, NumericalMathematics, SpatioTemporal, gR, Graphics, Optimization, Survival


CC BY 4.0
This article and supplementary materials are licensed under a Creative Commons Attribution 4.0 International license.

@article{RJ-2021-102,
  author = {Jeremy Gelb},
  title = {{SPNETWORK, A PACKAGE FOR NETWORK KERNEL DENSITY ESTIMATION}},
  year = {2021},
  journal = {{The R Journal}},
  doi = {10.32614/RJ-2021-102},
  url = {https://journal.r-project.org/archive/2021/RJ-2021-102/index.html}
}