@article{JSSv038i07, title={mstate: An R Package for the Analysis of Competing Risks and Multi-State Models}, volume={38}, url={https://www.jstatsoft.org/index.php/jss/article/view/v038i07}, doi={10.18637/jss.v038.i07}, abstract={Multi-state models are a very useful tool to answer a wide range of questions in survival analysis that cannot, or only in a more complicated way, be answered by classical models. They are suitable for both biomedical and other applications in which time-to-event variables are analyzed. However, they are still not frequently applied. So far, an important reason for this has been the lack of available software. To overcome this problem, we have developed the <b>mstate</b> package in R for the analysis of multi-state models. The package covers all steps of the analysis of multi-state models, from model building and data preparation to estimation and graphical representation of the results. It can be applied to non- and semi-parametric (Cox) models. The package is also suitable for competing risks models, as they are a special category of multi-state models. This article offers guidelines for the actual use of the software by means of an elaborate multi-state analysis of data describing post-transplant events of patients with blood cancer. The data have been provided by the EBMT (the European Group for Blood and Marrow Transplantation). Special attention will be paid to the modeling of different covariate effects (the same for all transitions or transition-specific) and different baseline hazard assumptions (different for all transitions or equal for some).}, number={7}, journal={Journal of Statistical Software}, author={de Wreede, Liesbeth C. and Fiocco, Marta and Putter, Hein}, year={2011}, pages={1–30} }