powered by
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)
# S3 method for data.frame define_surv_table(x)
# S3 method for character define_surv_table(x)
a surv_table object, which can be used with compute_surv().
surv_table
compute_surv()
a data frame with columns time and survival
time
survival
x <- data.frame(time = c(0, 1, 5, 10), survival = c(1, 0.9, 0.7, 0.5)) define_surv_table(x)
Run the code above in your browser using DataLab