To cite package ‘trtswitch’ in publications use:

Lu K (2026). trtswitch: Treatment Switching. R package version 0.2.7, https://github.com/kaifenglu/trtswitch.

Corresponding BibTeX entry:

  @Manual{,
    title = {trtswitch: Treatment Switching},
    author = {Kaifeng Lu},
    year = {2026},
    note = {R package version 0.2.7},
    url = {https://github.com/kaifenglu/trtswitch},
  }