Utility functions for density, distribution function, quantile function, and random generation from data.
qdata_v(x, p = seq(0, 1, 0.25), na.rm = TRUE, ...)qdata_f(x, ..., data = NULL, groups = NULL, na.rm = TRUE)
cdata_v(x, p = 0.95, na.rm = TRUE, ...)
cdata_f(x, ..., data = NULL, groups = NULL, na.rm = TRUE)
pdata_v(x, q, lower.tail = TRUE, ...)
pdata_f(x, ..., data = NULL, groups = NULL, na.rm = TRUE)
rdata_v(x, n, replace = TRUE, ...)
rdata_f(x, ..., data = NULL, groups = NULL, na.rm = TRUE)
ddata_v(x, q, ..., data = NULL, log = FALSE, na.rm = TRUE)
ddata_f(x, ..., data = NULL, groups = NULL, na.rm = TRUE)
a vector containing the data
a vector of probabilities
a logical indicating whether NA
s should be removed before computing.
additional arguments passed to quantile
or sample
a data frame in which to evaluate formula
a grouping variable, typically the name of a variable in data
a vector of quantiles
a logical indicating whether to use the lower or upper tail probability
number of values to sample
a logical indicating whether to sample with replacement
a logical indicating whether the result should be log transformed
ddata()
, pdata()
, qdata()
,
rdata()
, cdata()