survcox_predict {survcompare} | R Documentation |
Computes event probabilities from a trained cox model
survcox_predict(trained_model, newdata, fixed_time, interpolation = "constant")
trained_model |
pre-trained cox model of coxph class |
newdata |
data to compute event probabilities for |
fixed_time |
at which event probabilities are computed |
interpolation |
"constant" by default, can also be "linear", for between times interpolation for hazard rates |
returns matrix(nrow = length(newdata), ncol = length(fixed_time))