Learn R Programming

visR (version 0.4.1)

get_quantile: 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 survfit get_quantile( x, ..., probs = c(0.25, 0.5, 0.75), conf.int = TRUE, tolerance = sqrt(.Machine$double.eps) )

Value

A data frame with quantiles of the object

Arguments

x

An object of class survfit

...

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

See Also

Examples

Run this code

## 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)

Run the code above in your browser using DataLab