Calculate Quantile for an Estimated Distribution of Physiological Results

# S3 method for kosmic
quantile(x, probs = c(0.025, 0.5, 0.975), names = TRUE, ...)

Arguments

x

A kosmic result.

probs

Numeric vector. Probabilities with a value between 0 and 1 (exclusive).

names

Logical. If true, the result has a names attribute. Set to false to speed up the calculation of many probabilities.

...

Value

A numeric vector of the quantiles corresponding to the 2.5th, 50th and 97.5th percentile, or the probabilities given.