To cite the R package p3state.msm in publications use:

Meira-Machado L, Roca-Pardiñas J, Araújo A (2023). p3state.msm: Analyzing Survival Data from an Illness-Death Model. R package version 1.3.2, https://CRAN.R-project.org/package=p3state.msm.

Meira-Machado L, Pardiñas JR (2011). “p3state.msm: Analyzing Survival Data from an Illness-Death Model.” Journal of Statistical Software, 38(3), 1–18. doi:10.18637/jss.v038.i03.

Corresponding BibTeX entries:

  @Manual{,
    title = {p3state.msm: Analyzing Survival Data from an Illness-Death
      Model},
    author = {Lu{\'\i}s Meira-Machado and Javier Roca-Pardi{\~n}as and
      Artur Ara{\'u}jo},
    year = {2023},
    note = {R package version 1.3.2},
    url = {https://CRAN.R-project.org/package=p3state.msm},
  }
  @Article{,
    title = {p3state.msm: Analyzing Survival Data from an Illness-Death
      Model},
    author = {Lu\'{\i}s Meira-Machado and Javier Roca Pardi\~{n}as},
    journal = {Journal of Statistical Software},
    year = {2011},
    volume = {38},
    number = {3},
    pages = {1--18},
    doi = {10.18637/jss.v038.i03},
  }