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, provides seamless support for vector and raster spatial data via tight integration with the sf and terra packages, and enables data-driven causal inference from spatial snapshots.
Refer to the package documentation https://stscl.github.io/spEDM/ for more detailed information.
Installation
- Install from CRAN with:
install.packages("spEDM", dependencies = TRUE)- Install binary version from R-universe with:
install.packages("spEDM",
repos = c("https://stscl.r-universe.dev",
"https://cloud.r-project.org"),
dependencies = TRUE)- Install from source code on GitHub with:
if (!requireNamespace("pak", quietly = TRUE)) {
install.packages("pak")
}
pak::pak("stscl/spEDM", dependencies = TRUE)