powered by
Estimate subdistribution functions for crr objects
# S3 method for tidycrr predict(object, times = NULL, probs = NULL, newdata = NULL, ...)
named list of prediction estimates
a tidycrr object
Numeric vector of times to obtain risk estimates at
Numeric vector of quantiles to obtain estimates at
A base::data.frame() or tibble::tibble() containing all the original predictors used to create x. Defaults to NULL.
base::data.frame()
tibble::tibble()
NULL
not used
Other crr() functions: broom_methods_crr, crr()
broom_methods_crr
crr()
crr(Surv(ttdeath, death_cr) ~ age, trial) %>% predict(times = 12, newdata = trial[1:10, ])
Run the code above in your browser using DataLab