Package: causalMed Title: Parametric G-Formula for Longitudinal Mediation and Total Effects Version: 0.1.3 Authors@R: c(person("Alimu", "Dayimu", email = "ad938@cam.ac.uk", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9998-7463")), person("Xingling", "Guo", role = c("aut"))) Description: Causal mediation analysis for longitudinal data with time-varying exposures, mediators and confounders, covering both interventional (Lin et al. (2017) ) and natural (Zheng and van der Laan (2017) ) direct and indirect effects. Estimation uses the parametric g-formula (Robins (1986) ), which is also exposed directly so that counterfactual means or risks can be estimated under static, dynamic or time-varying hypothetical interventions. Depends: R (>= 3.5.1) License: GPL (>= 2) Encoding: UTF-8 LazyData: true Imports: data.table, nnet, future, future.apply, progressr Suggests: gfoRmula, Hmisc, knitr, rmarkdown, survival, testthat URL: https://github.com/adayim/causalMed, https://adayim.github.io/causalMed/ BugReports: https://github.com/adayim/causalMed/issues VignetteBuilder: knitr Config/roxygen2/version: 8.0.0 RoxygenNote: 7.3.3 NeedsCompilation: no Packaged: 2026-11-06 21:14:35 UTC; root Author: Alimu Dayimu [aut, cre] (ORCID: ), Xingling Guo [aut] Maintainer: Alimu Dayimu Repository: https://cran.r-universe.dev Date/Publication: 2026-11-06 18:07:56 UTC RemoteUrl: https://github.com/cran/causalMed RemoteRef: HEAD RemoteSha: 910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e