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, . A BibTeX entry for LaTeX users is @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}, }