| q_search | R Documentation |
Given a survfitr object, returns the first time at which the
estimated survival function falls to the quantile q or below.
q_search(f, q = 0.5)
f |
a |
q |
quantile. Default is 0.5 (the median survival time). |
The survival time of the selected quantile, or NA (with a
warning) when the survival estimates are not available.
data(MMC)
fit <- survfitr(Survr(id, time, event) ~ 1, data = MMC)
# 75th percentile of the survival function
q_search(fit, q = 0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.