
Last chance! 50% off unlimited learning
Sale ends in
Returns the inverse cumulative distribution, aka quantile, function for a distribution evaluated at a given point between 0 and 1.
# S3 method for Distribution
quantile(x, p, ..., lower.tail = TRUE,
log.p = FALSE, simplify = TRUE)
Distribution.
vector of probabilities to evaluate function at.
additional arguments.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE then
if TRUE (default) returns results in simplest form (vector or data.table) otherwise as data.table.
Inverse cumulative distribution function evaluated at given points as either a numeric if simplify
is TRUE
or as a data.table.
$quantile(p, ..., lower.tail = TRUE, log.p = FALSE, simplify = TRUE)
The quantile function,
If lower.tail
is FALSE then
If available a quantile will be returned without warning using an analytic expression. Otherwise,
if the distribution has not been decorated with FunctionImputation
, NULL
is returned.
To impute the quantile, use decorate(distribution, FunctionImputation)
, this will provide a numeric
calculation for the quantile with warning.
Additional named arguments can be passed, which are required for composite distributions such as
ProductDistribution
and VectorDistribution
.
pdf
, cdf
, rand
for other statistical functions.
FunctionImputation
, decorate
for imputing missing functions.