get_quantile | R Documentation |
S3 method for extracting quantiles. No default method is available at the moment.
get_quantile(x, ...)
## S3 method for class 'survfit'
get_quantile(
x,
...,
probs = c(0.25, 0.5, 0.75),
conf.int = TRUE,
tolerance = sqrt(.Machine$double.eps)
)
x |
An object of class |
... |
other arguments passed on to the method |
probs |
probabilities Default = c(0.25,0.50,0.75) |
conf.int |
should lower and upper confidence limits be returned? |
tolerance |
tolerance for checking that the survival curve exactly equals one of the quantiles |
A data frame with quantiles of the object
quantile.survfit
## Kaplan-Meier estimates
survfit_object <- visR::estimate_KM(data = adtte, strata = c("TRTP"))
## visR quantiles
visR::get_quantile(survfit_object)
## survival quantiles
quantile(survfit_object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.