Learn R Programming

mosaic (version 0.9-0)

qdata_v: The Data Distribution

Description

Utility functions for density, distribution function, quantile function, and random generation from data.

Usage

qdata_v(x, p = seq(0, 1, 0.25), na.rm = TRUE, ...)

qdata_f(x, ..., data, groups = NULL, ..fun.. = qdata_v, na.rm = TRUE)

cdata_v(x, p = 0.95, na.rm = TRUE, ...)

cdata_f(x, ..., data, groups = NULL, ..fun.. = cdata_v, na.rm = TRUE)

pdata_v(x, q, lower.tail = TRUE, ...)

pdata_f(x, ..., data, groups = NULL, ..fun.. = pdata_v, na.rm = TRUE)

rdata_v(vals, n, replace = TRUE, ...)

rdata_f(x, ..., data, groups = NULL, ..fun.. = rdata_v, na.rm = TRUE)

ddata_v(vals, q, ..., data = NULL, log = FALSE, na.rm = TRUE)

ddata_f(x, ..., data, groups = NULL, ..fun.. = ddata_v, na.rm = TRUE)

Arguments

p
a vector of probabilities
q
a vector of quantiles
vals
a vector containing the data
data
a data frame in which to evaluate vals
n
number of values to sample
replace
a logical indicating whether to sample with replacement
groups
a grouping variable, typically the name of a variable in data
..fun..
a function. Most users will not need to change the default value.
...
additional arguments passed to quantile or sample
na.rm
a logical indicating whether NAs should be removed before computing.
log
a logical indicating whether the result should be log transformed
x
an object
lower.tail
a logical indicating whether to use the lower or upper tail probability

See Also

ddata, pdata, qdata, rdata, cdata