qsearch: Calculate the survival time of a selected quantile

Description Usage Arguments Value Examples

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)

survrec documentation built on May 20, 2017, 4:56 a.m.

Search within the survrec package
Search all R packages, documentation and source code