q.search {survrec} | R Documentation |
Auxiliary function called from survdiffr function. Given a survfitr object we obtain the quantile from a survival function
q.search(f, q = 0.5)
f |
survdifr object |
q |
quantile. Default is 0.5 |
Returns the time in a selected quantile
data(MMC) fit<-survfitr(Survr(id,time,event)~1,data=MMC) # 75th percentile from the survival function q.search(fit,q=0.75)