Predict the cumulative hazard/survival function for a survival model
Arguments
- object
Survival model object: phreg, coxph, rfsrc, ranger
- newdata
data.frame
- times
numeric vector: Time points at which the survival model is evaluated. If NULL, the time points associated with the survival model is used.
- individual.time
logical: If TRUE the survival object is evaluated at different time points for each row in newdata. The number of rows in newdata and the length of times must be the same.
- extend
if TRUE, prints information for all specified 'times’, even if there are no subjects left at the end of the specified ‘times’ (see survival::summary.survfit).
- ...
Additional arguments.
