surv_to_risk: Safely convert a survival matrix prediction to a relative...

View source: R/helpers.R

surv_to_riskR Documentation

Safely convert a survival matrix prediction to a relative risk


Many methods can be used to reduce a discrete survival distribution prediction (i.e. matrix) to a relative risk / ranking prediction. Here we define the predicted relative risk as the sum of the predicted cumulative hazard function - which can be loosely interpreted as the expected number of deaths for patients with similar characteristics.





TxN survival matrix prediction where T is number of time-points and N is number of predicted observations. Colum names correspond to predicted time-points and should therefore be coercable to numeric and increasing. Entries are survival predictions and should be (non-strictly) decreasing in each row.


A numeric vector with the expected number of deaths.


Sonabend, R., Bender, A., & Vollmer, S. (2021). Evaluation of survival distribution predictions with discrimination measures.

survivalmodels documentation built on May 29, 2024, 7:26 a.m.