spfilteR: An R package for Semiparametric Spatial Filtering with Eigenvectors in (Generalized) Linear Models

Eigenvector-based Spatial filtering constitutes a highly flexible semiparametric approach to account for spatial autocorrelation in a regression framework. It combines judiciously selected eigenvectors from a transformed connectivity matrix to construct a synthetic spatial filter and remove spatial patterns from model residuals. This article introduces the spfilteR package that provides several useful and flexible tools to estimate spatially filtered linear and generalized linear models in R. While the package features functions to identify relevant eigenvectors based on different selection criteria in an unsupervised fashion, it also helps users to perform supervised spatial filtering and to select eigenvectors based on alternative user-defined criteria. Besides a brief discussion of the eigenvector-based spatial filtering approach, this article presents the main functions of the package and illustrates their usage. Comparison to alternative implementations in other R packages highlights the added value of the spfilteR package.

Sebastian Juhl
2021-09-20

CRAN packages used

spfilteR, spatialreg, spmoran, adespatial, vegan

CRAN Task Views implied by cited packages

Spatial, Econometrics, Environmetrics, Multivariate, Phylogenetics, Psychometrics

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Juhl, "spfilteR: An R package for Semiparametric Spatial Filtering with Eigenvectors in (Generalized) Linear Models", The R Journal, 2021

BibTeX citation

@article{RJ-2021-085,
  author = {Juhl, Sebastian},
  title = {spfilteR: An R package for Semiparametric Spatial Filtering with Eigenvectors in (Generalized) Linear Models},
  journal = {The R Journal},
  year = {2021},
  note = {https://doi.org/10.32614/RJ-2021-085},
  doi = {10.32614/RJ-2021-085},
  volume = {13},
  issue = {2},
  issn = {2073-4859},
  pages = {450-459}
}