predict.fit_models {easysurv} | R Documentation |
Predict method for fit_models
Description
Predict method for fit_models
Usage
## S3 method for class 'fit_models'
predict(object, eval_time = NULL, type = c("survival", "hazard"), ...)
Arguments
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 |
Value
A list of predictions for each model in the
fit_models
object.
Examples
models <- fit_models(
data = easysurv::easy_bc,
time = "recyrs",
event = "censrec",
predict_by = "group",
covariates = "group"
)
predict(models)
[Package easysurv version 2.0.1 Index]