logo by layeyo
Pattern Causality Analysis
pc is an R package for pattern-based causality analysis in both time series and spatial cross-sectional data. It uses symbolic pattern representations and cross mapping to detect directional interactions and infer causal structure from temporal dynamics and spatial snapshots. Built on a high-performance C++ backend with a lightweight R interface, pc provides efficient and flexible tools for data-driven causality analysis.
Refer to the package documentation https://stscl.github.io/pc/ for more detailed information.
install.packages("pc", dependencies = TRUE)install.packages("pc",
repos = c("https://stscl.r-universe.dev",
"https://cloud.r-project.org"),
dependencies = TRUE)if (!requireNamespace("pak")) {
install.packages("pak")
}
pak::pak("stscl/pc", dependencies = TRUE)