survSum: Calculate Survival Rate and Time

Description Usage Arguments Value Examples

Description

Calculate Survival Rate and Time

Usage

1
2
3
4
5

Arguments

fit

fit by survfit() function

year

year

Value

a dataframe

Examples

 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)

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.

Related to survSum in fastStat...