About
This skill provides specialized guidance for performing survival analysis within the R ecosystem, covering the full spectrum from basic non-parametric methods to advanced multi-state modeling. It offers ready-to-use patterns for Kaplan-Meier estimation, Cox Proportional Hazards modeling, and parametric survival analysis using packages like survival, flexsurv, and rstpm2. Additionally, it includes sophisticated techniques for handling competing risks, Restricted Mean Survival Time (RMST), and modern tidymodels integration via the censored package. It is designed to help data scientists and biostatisticians implement robust, publication-quality longitudinal analyses with automated visualization workflows using survminer.