To cite package ‘medsim’ in publications use:

Tofighi D (2026). medsim: Simulation Infrastructure for Mediation Analysis. R package version 0.2.1.9000, https://github.com/data-wise/medsim.

Corresponding BibTeX entry:

  @Manual{,
    title = {medsim: Simulation Infrastructure for Mediation Analysis},
    author = {Davood Tofighi},
    year = {2026},
    note = {R package version 0.2.1.9000},
    url = {https://github.com/data-wise/medsim},
  }