Skip to contents

spEDM website: https://stscl.github.io/spEDM/

Spatial Empirical Dynamic Modeling

spEDM is an R package for spatial causal discovery. It extends Empirical Dynamic Modeling (EDM) from time series to spatial cross-sectional data, supports both vector and raster spatial formats via integration with sf and terra, and enables data-driven causal inference from spatial snapshots.

Installation

  • Install from CRAN with:
install.packages("spEDM", dep = TRUE)
install.packages("spEDM",
                 repos = c("https://stscl.r-universe.dev",
                           "https://cloud.r-project.org"),
                 dep = TRUE)
  • Install from source code on GitHub with:
if (!requireNamespace("devtools")) {
    install.packages("devtools")
}
devtools::install_github("stscl/spEDM",
                         build_vignettes = TRUE,
                         dep = TRUE)