
A wrapper for survival probabilities with coxph models
Source:R/proportional_hazards-survival.R
survival_prob_coxph.RdA wrapper for survival probabilities with coxph models
Usage
survival_prob_coxph(
object,
new_data,
eval_time,
time = deprecated(),
output = "surv",
interval = "none",
conf.int = 0.95,
...
)Arguments
- object
A parsnip
model_fitobject resulting from proportional_hazards() with engine = "survival".- new_data
Data for prediction
- eval_time
A vector of integers for prediction times.
- time
Deprecated in favor of
eval_time. A vector of integers for prediction times.- output
One of
"surv","conf", or"haz".- interval
Add confidence interval for survival probability? Options are
"none"or"confidence".- conf.int
The confidence level.
- ...
Options to pass to
survival::survfit()