get_quantile {visR} | R Documentation |
Wrapper around quantile methods
Description
S3 method for extracting quantiles. No default method is available at the moment.
Usage
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)
)
Arguments
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 |
Value
A data frame with quantiles of the object
See Also
Examples
## 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)
[Package visR version 0.4.1 Index]