View source: R/bag_tree-rpart.R
survival_prob_survbagg | R Documentation |
survbagg
modelsA wrapper for survival probabilities with survbagg
models
survival_prob_survbagg(object, new_data, eval_time, time = deprecated())
object |
A parsnip |
new_data |
Data for prediction. |
eval_time |
A vector of prediction times. |
time |
Deprecated in favor of |
A vctrs list of tibbles.
bagged_tree <- bag_tree() %>%
set_engine("rpart") %>%
set_mode("censored regression") %>%
fit(Surv(time, status) ~ age + ph.ecog, data = lung)
survival_prob_survbagg(bagged_tree, lung[1:3, ], eval_time = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.