Description Usage Arguments Value Author(s) See Also Examples
S3 method for extracting quantiles. For survival objects, it takes into account the maximal time of survival as limit instead of NA If the quantile requested is larger than the minimal quantile available, the result is NA. No default method is available at the moment.
1 2 3 4 5 6 7 8 9 10 | get_quantile(x, ...)
## S3 method for class 'survfit'
get_quantile(
survfit_object = survfit_object,
probs = c(0.25, 0.5, 0.75),
conf.int = TRUE,
tolerance = sqrt(.Machine$double.eps),
debug = FALSE
)
|
x |
S3 object |
... |
other arguments passed on to the method |
survfit_object |
An object of class |
probs |
numeric vector of probabilities with values in [0,1] |
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 tibble with quantiles
Steven Haesendonckx
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.