| quantile.survfitr | R Documentation |
Returns, for each requested probability p, the first time at which
the estimated survival function falls to 1 - p or below (so
probs = 0.5 is the median survival time). NA is returned when the
curve does not reach the requested level.
## S3 method for class 'survfitr'
quantile(x, probs = c(0.25, 0.5, 0.75), ...)
x |
a |
probs |
vector of probabilities. |
... |
ignored; kept for compatibility with the generic. |
A named vector of survival times, or a matrix with one row per group when the fit has strata.
q_search(), survfitr()
data(MMC)
fit <- survfitr(Survr(id, time, event) ~ group,
data = MMC,
type = "wang-chang"
)
quantile(fit, probs = c(0.25, 0.5, 0.75))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.