View source: R/survival_functions.R
surv_prob | R Documentation |
surv_prob
calculates survival probabilities from survival models.
surv_prob(model, times = NULL, PA = FALSE, rx = 1)
model |
survival model. |
times |
time horizon to calculate survival probabilities. |
PA |
run probabilistic analysis. |
rx |
determines which treatment arm (same order as factor levels of treatment variable). Default = FALSE. |
vector of survival probabilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.