q.search {survrec}R Documentation

Calculate the survival time of a selected quantile

Description

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

Usage

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


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

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


[Package survrec version 1.1-7 Index]