Temporal Empirical Dynamic Modeling

Inferring causation from time series data through empirical dynamic modeling (EDM), with methods such as convergent cross mapping from Sugihara et al. (2012) , partial cross mapping introduced by Leng et al. (2020) , and cross mapping cardinality described in Tao et al. (2023) , following a systematic description proposed in Lyu et al. (2026) .


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

CRAN CRAN Release CRAN Checks Downloads_all Downloads_month License R-CMD-check Lifecycle: stable R-universe CEUS Zenodo

Temporal Empirical Dynamic Modeling

Overview

The tEDM package provides a suite of tools for exploring and quantifying causality in time series using Empirical Dynamic Modeling (EDM). It is particularly designed to detect, differentiate, and reconstruct causal dynamics in systems where traditional assumptions of linearity and stationarity may not hold.

The package implements four fundamental EDM-based methods:

Refer to the package documentation https://stscl.github.io/tEDM/ for more detailed information.

Installation

  • Install from CRAN with:
install.packages("tEDM", dep = TRUE)
install.packages("tEDM",
                 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/tEDM",
                         build_vignettes = TRUE,
                         dep = TRUE)

CITATION

Please cite tEDM as:

Lyu, W., Lei, Y., Yi, W., Song, Y., Li, X., Dai, S., Qin, Y., Zhao, W., 2026. Causal discovery in urban data with temporal empirical dynamic modeling: The R package tEDM. Computers, Environment and Urban Systems 127, 102435. https://doi.org/10.1016/j.compenvurbsys.2026.102435

A BibTeX entry for LaTeX users is:

@article{lyu2026tEDM, 
    title = {Causal discovery in urban data with temporal empirical dynamic modeling: The {R} package {tEDM}}, 
    volume = {127}, 
    ISSN = {0198-9715}, 
    DOI = {10.1016/j.compenvurbsys.2026.102435}, 
    journal = {Computers, Environment and Urban Systems},
    publisher = {Elsevier BV}, 
    author = {Lyu, Wenbo and Lei, Yangyang and Yi, Wen and Song, Yongze and Li, Xiao and Dai, Shaoqing and Qin, Yiming and Zhao, Wufan}, 
    year = {2026}, 
    month = {jul}, 
    pages = {102435} 
}

Reference

Lyu, W., Lei, Y., Yi, W., Song, Y., Li, X., Dai, S., Qin, Y., Zhao, W., 2026. Causal discovery in urban data with temporal empirical dynamic modeling: The R package tEDM. Computers, Environment and Urban Systems 127, 102435. https://doi.org/10.1016/j.compenvurbsys.2026.102435.

Sugihara, G., May, R., Ye, H., Hsieh, C., Deyle, E., Fogarty, M., Munch, S., 2012. Detecting Causality in Complex Ecosystems. Science 338, 496–500. https://doi.org/10.1126/science.1227079.

Leng, S., Ma, H., Kurths, J., Lai, Y.-C., Lin, W., Aihara, K., Chen, L., 2020. Partial cross mapping eliminates indirect causal influences. Nature Communications 11. https://doi.org/10.1038/s41467-020-16238-0.

Tao, P., Wang, Q., Shi, J., Hao, X., Liu, X., Min, B., Zhang, Y., Li, C., Cui, H., Chen, L., 2023. Detecting dynamical causality by intersection cardinal concavity. Fundamental Research. https://doi.org/10.1016/j.fmre.2023.01.007.

Clark, A.T., Ye, H., Isbell, F., Deyle, E.R., Cowles, J., Tilman, G.D., Sugihara, G., 2015. Spatial convergent cross mapping to detect causal relationships from short time series. Ecology 96, 1174–1181. https://doi.org/10.1890/14-1479.1.

 

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tEDM")

1.3 by Wenbo Lyu, 6 months ago


https://stscl.github.io/tEDM/, https://github.com/stscl/tEDM


Report a bug at https://github.com/stscl/tEDM/issues


Browse source code at https://github.com/cran/tEDM


Authors: Wenbo Lyu [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, ggplot2, methods, Rcpp

Suggests RcppThread, RcppArmadillo, readr, plot3D, spEDM, knitr, rmarkdown, purrr, tidyr, cowplot

Linking to Rcpp, RcppThread, RcppArmadillo


Suggested by infocausality, infoxtr, pc.


See at CRAN