predict.tidycrr | R Documentation |
Estimate subdistribution functions for crr objects
## S3 method for class 'tidycrr'
predict(object, times = NULL, probs = NULL, newdata = NULL, ...)
object |
a tidycrr object |
times |
Numeric vector of times to obtain risk estimates at |
probs |
Numeric vector of quantiles to obtain estimates at |
newdata |
A |
... |
not used |
named list of prediction estimates
Other crr() functions:
broom_methods_crr
,
crr()
crr(Surv(ttdeath, death_cr) ~ age, trial) %>%
predict(times = 12, newdata = trial[1:10, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.