Learn R Programming

survrec (version 1.2-2)

q.search: 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

Run this code

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

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

Run the code above in your browser using DataLab