View source: R/boost_tree-mboost.R
survival_prob_mboost | R Documentation |
A wrapper for survival probabilities with mboost models
survival_prob_mboost(object, new_data, eval_time, time = deprecated())
object |
A parsnip |
new_data |
Data for prediction. |
eval_time |
A vector of integers for prediction times. |
time |
Deprecated in favor of |
A tibble with a list column of nested tibbles.
mod <- boost_tree() %>%
set_engine("mboost") %>%
set_mode("censored regression") %>%
fit(Surv(time, status) ~ ., data = lung)
survival_prob_mboost(mod, new_data = lung[1:3, ], eval_time = 300)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.