Read off quantiles (default median) and corresponding CIs from a survfit object.

QuantilesSurvivalCurves(SVOBJECT, PROBS = 0.5, DIGITS = 1,
  SMARTLABEL = F)

Arguments

SVOBJECT,

Survival Object as produced by survfit()

PROBS

= 0.5, vector of desired quantiles. CAVE: 0.25 corresponds to S(t)= 1-0.25!

DIGITS

= 1, number of digits in output

SMARTLABEL

= F, if TRUE the group label will be shortened to the part after the "="

Value

dataframe with Group Quantile Estimate Lower Upper

Details

QuantilesSurvivalCurves

Examples

if (FALSE) { ### Test SurvivalAtT Times<-c(rexp(100,1),rexp(100,.5))*12 Status<-c(rbinom(100,1,.8),rbinom(100,1,.2)) gr<-sample(c("A","B"),200,replace=T) mod<-survfit(Surv(Times,Status)~gr) plot(mod) QuantilesSurvivalCurves(mod,PROBS=c(.4,.6)) QuantilesSurvivalCurves(mod,PROBS=c(.4,.6),SMARTLABEL = T) QuantilesSurvivalCurves(mod,SMARTLABEL = T) }