View source: R/proportional_hazards-survival.R
survival_prob_coxph | R Documentation |
A wrapper for survival probabilities with coxph models
survival_prob_coxph(
object,
x = deprecated(),
new_data,
eval_time,
time = deprecated(),
output = "surv",
interval = "none",
conf.int = 0.95,
...
)
object |
A parsnip |
x |
Deprecated. A model from |
new_data |
Data for prediction |
eval_time |
A vector of integers for prediction times. |
time |
Deprecated in favor of |
output |
One of |
interval |
Add confidence interval for survival probability? Options
are |
conf.int |
The confidence level. |
... |
Options to pass to |
A tibble with a list column of nested tibbles.
cox_mod <- proportional_hazards() %>%
set_engine("survival") %>%
fit(Surv(time, status) ~ ., data = lung)
survival_prob_coxph(cox_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.