pencal: an R Package for the Dynamic Prediction of Survival with Many Longitudinal Predictors
In survival analysis, longitudinal information on the health status of a patient can be used to dynamically update the predicted probability that a patient will experience an event of interest. Traditional approaches to dynamic prediction such as joint models become computationally unfeasible with more than a handful of longitudinal covariates, warranting the development of methods that can handle a larger number of longitudinal covariates. We introduce the R package pencal, which implements a Penalized Regression Calibration (PRC) approach that makes it possible to handle many longitudinal covariates as predictors of survival. pencal uses mixed-effects models to summarize the trajectories of the longitudinal covariates up to a prespecified landmark time, and a penalized Cox model to predict survival based on both baseline covariates and summary measures of the longitudinal covariates. This article illustrates the structure of the R package, provides a step by step example showing how to estimate PRC, compute dynamic predictions of survival and validate performance, and shows how parallelization can be used to significantly reduce computing time.
Authors
- Mirko Signorelli (ORCID: https://orcid.org/0000-0002-8102-3356)
Institutions
- Leiden University (NL)
- Mathematical Institute of the Slovak Academy of Sciences (SK)
Publication Details
- Journal
- The R Journal
- Published
- 2025-03-09
- DOI
- https://doi.org/10.32614/rj-2024-014
- Citations
- 1
- Primary Topic
- Machine Learning in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 2.48