Distribution function and quantile function
of the gamma distribution.
Usage
cdfgam(x, para = c(1, 1))
quagam(f, para = c(1, 1))
Value
cdfgam gives the distribution function;
quagam gives the quantile function.
Arguments
x
Vector of quantiles.
f
Vector of probabilities.
para
Numeric vector containing the parameters of the distribution,
in the order \(\alpha, \beta\) (shape, scale).
Details
The gamma distribution with
shape parameter \(\alpha\) and
scale parameter \(\beta\) has probability density function
$$f(x)={x^{\alpha-1} \exp(-x/\beta) \over \beta^\alpha \Gamma(\alpha)}$$
for \(x\ge0\), where \(\Gamma(.)\) is the gamma function.