Returns the cumulative distribution function for a distribution evaluated at a given point.
cdf(object, x1, ..., lower.tail = TRUE, log.p = FALSE, simplify = TRUE)
vector of numerics to evaluate function at.
logical; if TRUE (default), probabilities are \(P(X \le x)\) otherwise, \(P(X > x)\).
logical; if TRUE, probabilities p are given as log(p).
if TRUE (default) returns results in simplest form (vector or data.table) otherwise as data.table.
Cumulative distribution function evaluated at given points as either a numeric if
simplify is TRUE
or as a data.table.
The (lower tail) cumulative distribution function, \(F_X\), is defined as
$$F_X(x) = P(X \le x)$$
lower.tail is FALSE then \(1 - F_X(x)\) is returned, also known as the
If available a cdf will be returned without warning using an analytic expression. Otherwise,
if the distribution has not been decorated with
NULL is returned.
To impute the cdf, use
decorate(distribution, FunctionImputation), this will provide a numeric
calculation for the cdf with warning.
$cdf(x1, ..., lower.tail = TRUE, log.p = FALSE, simplify = TRUE)