predict.fit_models {easysurv} | R Documentation |
fit_models
Predict method for fit_models
## S3 method for class 'fit_models'
predict(object, eval_time = NULL, type = c("survival", "hazard"), ...)
object |
An object of class |
eval_time |
(Optional) A vector of evaluation time points for generating
predictions. Default is |
type |
A character vector indicating the type of predictions to
generate. Default is |
... |
Additional arguments |
A list of predictions for each model in the
fit_models
object.
models <- fit_models(
data = easysurv::easy_bc,
time = "recyrs",
event = "censrec",
predict_by = "group",
covariates = "group"
)
predict(models)