Skip to main navigation Skip to search Skip to main content

Quantifying spatial and environmental effects in spatial autoregressive model with the spatialreg.hp R package

  • Jiangshan Lai*
  • , Yan He
  • , Mi Hou
  • , Guochun Shen
  • , Wenyong Guo
  • , Lingfeng Mao*
  • *Corresponding author for this work
  • Nanjing Forestry University
  • University of Chinese Academy of Sciences
  • Zhejiang Zhoushan Island Ecosystem Observation and Research Station
  • East China Normal University

Research output: Contribution to journalArticlepeer-review

Abstract

Abstract Ecological data frequently exhibit spatial autocorrelation, whereby geographically proximate sampling units are more similar in species distributions, community composition, or environmental attributes than expected by chance. Spatial Autoregressive models (SARs) address this issue by explicitly incorporating spatial dependence. However, disentangling the relative contributions of spatial structure and ecological predictors remains challenging, particularly in the presence of multicollinearity. The ‘spatialreg.hp’ R package extended the concept of average shared variance (ASV) to SARs, enabling the decomposition of total model R2 into unique and shared contributions of spatial and non-spatial predictors. The package calculated individual R2 values for spatial effects and environmental variables that summed exactly to the total model R2, thereby providing a new measure of predictor importance. We illustrated the package using case studies based on classic spatial datasets. The ‘spatialreg.hp’ package offers ecologists and geographers a new framework for quantifying the interplay between spatial processes and environmental drivers in ecological modeling.

Original languageEnglish
JournalJournal of Plant Ecology
Volume19
Issue number2
DOIs
StatePublished - Apr 2026

Keywords

  • R package
  • average shared variance
  • hierarchical portioning
  • spatial autocorrelation
  • variation partitioning

Fingerprint

Dive into the research topics of 'Quantifying spatial and environmental effects in spatial autoregressive model with the spatialreg.hp R package'. Together they form a unique fingerprint.

Cite this