Description Usage Arguments Details Value Author(s) See Also
Density, distribution function, quantile function and
random generation for the Gamma distribution with
parameters mean and variance, as opposed to
the standard shape ans scale.
1 2 3 4 5 6 7 |
x |
vector of quantiles |
q |
vector of quantiles |
p |
vector of probabilities |
n |
number of observations. If |
log |
logical: if |
log.p |
as for |
lower.tail |
logical: if |
mean |
the mean of the distribution |
var |
the variance of the distribution |
The Gamma distribution with parameters shape = a
and scale = s have a mean and variance of
E(X) = a*s and Var(X) = a*s^2. Since
Var(X) = E(X) * scale, thus scale = Var(X) /
E(X) and shape = E(X) / scale.
dgamma2 gives the density, pgamma2 gives
the distribution function, qgamma2 gives the
quantile function, and rgamma2 generates random
deviates.
Invalid arguments will result in return value NaN,
with a warning.
Mark Cowley, 19 July 2005
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.