View source: R/survival_reg-survival.R
| survival_prob_survreg | R Documentation | 
Internal function helps for parametric survival models
survival_prob_survreg(object, new_data, eval_time, time = deprecated())
hazard_survreg(object, new_data, eval_time)
object | 
 A parsnip   | 
new_data | 
 A data frame.  | 
eval_time | 
 A vector of time points.  | 
time | 
 Deprecated in favor of   | 
A tibble with a list column of nested tibbles.
mod <- survival_reg() %>% 
  set_engine("survival") %>%
  fit(Surv(time, status) ~ ., data = lung)
survival_prob_survreg(mod, lung[1:3, ], eval_time = 100)
hazard_survreg(mod, lung[1:3, ], eval_time = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.