View source: R/survival_define.R
| define_surv_table | R Documentation | 
Define a survival distribution based on explicit survival probabilities
define_surv_table(x)
## S3 method for class 'data.frame'
define_surv_table(x)
## S3 method for class 'character'
define_surv_table(x)
| x | a data frame with columns  | 
a surv_table object, which can be used with compute_surv().
 x <- data.frame(time = c(0, 1, 5, 10), survival = c(1, 0.9, 0.7, 0.5))
 define_surv_table(x)
 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.