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://github.com/adayim/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://github.com/adayim/causalmed},
  }