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