mgamma: Mean and Variance of the Gamma Distribution

View source: R/moments.R

mgammaR Documentation

Mean and Variance of the Gamma Distribution

Description

Formula: \mu = \frac{\mathrm{shape}}{\mathrm{rate}} \mathrm{Var}(X) = \frac{\mathrm{shape}}{\mathrm{rate}^2}

Usage

mgamma(shape, rate)

Arguments

shape

Shape parameter

rate

Rate parameter

Value

List with mean and variance

References

Evans, M., Hastings, N., and Peacock, B. (2000). Statistical Distributions. Wiley.

See Also

dgamma

Examples

mgamma(shape = 2, rate = 0.5)

AndriSignorell/DescTools documentation built on June 11, 2025, 10:41 p.m.