R/survival_define.R
define_surv_table.Rd
Define a survival distribution based on explicit survival probabilities
define_surv_table(x) # S3 method for data.frame define_surv_table(x) # S3 method for character define_surv_table(x)
x | a data frame with columns |
---|
a surv_table
object, which can be used with compute_surv()
.
#> time survival #> 1 0 1.0 #> 2 1 0.9 #> 3 5 0.7 #> 4 10 0.5