Methods for quantifying temporal and spatial causality through information flow, and decomposing it into unique, redundant, and synergistic components, following the framework described in Martinez-Sanchez et al. (2024)
Information-Theoretic Measure of Causality
infocausality is an R package for information-theoretic causal
analysis.
It quantifies temporal and spatial causality through information flow,
and decomposes it into unique, redundant, and synergistic components.
The package provides native support for data.frame, sf, and
SpatRaster objects, offering a unified interface for both time-series
and spatial cross-sectional causal analysis.
Refer to the package documentation https://stscl.github.io/infocausality/ for more detailed information.
⚠️ Note: The SURD (Synergistic-Unique-Redundant Decomposition) core computations in
infocausalityare executed via Python bindings. A pure C++ implementation with improved performance and easier deployment has been developed in theinfoxtrpackage. For new projects, we recommend usinginfoxtras a drop-in replacement.
install.packages("infocausality", dep = TRUE)
install.packages("infocausality",
repos = c("https://stscl.r-universe.dev",
"https://cloud.r-project.org"),
dep = TRUE)
if (!requireNamespace("devtools")) {
install.packages("devtools")
}
devtools::install_github("stscl/infocausality",
build_vignettes = TRUE,
dep = TRUE)