View source: R/decision_tree-rpart.R
survival_prob_pecRpart | R Documentation |
A wrapper for survival probabilities with pecRpart models
survival_prob_pecRpart(object, new_data, eval_time)
object |
A parsnip |
new_data |
Data for prediction. |
eval_time |
A vector of integers for prediction times. |
A tibble with a list column of nested tibbles.
mod <- decision_tree() %>%
set_mode("censored regression") %>%
set_engine("rpart") %>%
fit(Surv(time, status) ~ ., data = lung)
survival_prob_pecRpart(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.