Description Usage Arguments Value Examples
Calculate Survival Rate and Time
1 2 3 4 5 | surv_table(fit)
surv_median_time(fit)
surv_year_rate(fit, year)
|
fit |
fit by survfit() function |
year |
year |
a dataframe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(survival)
fit=survfit(Surv(futime, fustat)~rx, data=ovarian)
#survival table
surv_table(fit)
#median survival rate
surv_median_time(fit)
#one year survaival rate
surv_year_rate(fit,365)
#two years survaival rate
surv_year_rate(fit,365*2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.