To cite the paper that the R did package is based on:

Ortiz-Villavicencio M, Sant'Anna P (2025). “Better Understanding Triple Differences Estimators.” ArXiv. https://arxiv.org/abs/2505.09942.

To cite the did R package:

Ortiz-Villavicencio M, Sant'Anna P (2025). “triplediff: Triple Differences Estimators.” R package version 0.1.0, http://marcelortiz.com/triplediff/.

Corresponding BibTeX entries:

  @Article{,
    title = {Better Understanding Triple Differences Estimators},
    author = {Marcelo Ortiz-Villavicencio and Pedro H.C. Sant'Anna},
    year = {2025},
    journal = {ArXiv},
    url = {https://arxiv.org/abs/2505.09942},
  }
  @Misc{,
    title = {triplediff: Triple Differences Estimators},
    author = {Marcelo Ortiz-Villavicencio and Pedro H.C. Sant'Anna},
    year = {2025},
    note = {R package version 0.1.0},
    url = {http://marcelortiz.com/triplediff/},
  }