Density, distribution function, quantile function and random generation for the Gamma distribution
with shape, rate and other parameters inherited from the stats package. One additional parameter, shift
is provided to generate Gamma distributions with non-zero starts, starting at the shift value.
Usage
dgamma(x, shape, rate = 1, shift = 0, ...)
pgamma(q, shape, rate = 1, shift = 0, lower.tail = TRUE, ...)
rgamma(n, shape, rate = 1, shift = 0, ...)
qgamma(p, shape, rate = 1, shift = 0, lower.tail = TRUE, ...)Arguments
- x
numeric vector of quantiles
- shape
shape parameter of gamma distribution
- rate
rate parameter of gamma distribution, default 1
- shift
shift of the left end of the distribution
- ...
additional parameters to be passed to stats::dgamma, stats::pgamma, stats::qgamma and stats::rgamma
- q
numeric vector of quantiles
- lower.tail
logical; if TRUE (default), probabilities are \(P[X \le x]\), otherwise, \(P[X > x]\).
- n
number of observations
- p
vector of probabilities