To cite package ‘causalMed’ in publications use:

Dayimu A, Guo X (2026). causalMed: Parametric G-Formula for Longitudinal Mediation and Total Effects. R package version 0.1.3, https://CRAN.R-project.org/package=causalMed.

Corresponding BibTeX entry:

  @Manual{,
    title = {causalMed: Parametric G-Formula for Longitudinal Mediation
      and Total Effects},
    author = {Alimu Dayimu and Xingling Guo},
    year = {2026},
    note = {R package version 0.1.3},
    url = {https://CRAN.R-project.org/package=causalMed},
  }