| aorsf_internal | R Documentation | 
Internal helper function for aorsf objects
survival_prob_orsf(object, new_data, eval_time, time = deprecated())
object | 
 A parsnip   | 
new_data | 
 A data frame to be predicted.  | 
eval_time | 
 A vector of times to predict the survival probability.  | 
time | 
 Deprecated in favor of   | 
A tibble with a list column of nested tibbles.
mod <- rand_forest() %>%
  set_engine("aorsf") %>%
  set_mode("censored regression") %>%
  fit(Surv(time, status) ~ age + ph.ecog, data = na.omit(lung))
preds <- survival_prob_orsf(mod, lung[1:3, ], eval_time = c(250, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.