Calculate the survival time of a selected quantile

Share:

Description

Auxiliary function called from survdiffr function. Given a survfitr object we obtain the quantile from a survival function

Usage

1
q.search(f, q = 0.5)

Arguments

f

survdifr object

q

quantile. Default is 0.5

Value

Returns the time in a selected quantile

Examples

1
2
3
4
5
data(MMC)
fit<-survfitr(Survr(id,time,event)~1,data=MMC)

# 75th percentile from the survival function
q.search(fit,q=0.75)