The Gamma distribution
We provide convenient extensions of the [dpq]gamma
functions, which allow the distribution to be specified in terms of its mean and standard deviation, instead of shape and rate/scale.
qgamma( p, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE, mean, sd ) dgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE, mean, sd) pgamma( q, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE, mean, sd )
p
: vector of probabilitiesshape, rate, scale, log, lower.tail, log.p
: see stats::GammaDistmean, sd
: mean and standard deviation, overriding shape
and rate
or scale
if specifiedx, q
: vector of quantilesNumeric vector of length equal to the maximum of the lengths of the input arguments.
Useful links