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

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

Examples

mgamma(shape = 2, rate = 0.5)
#> $mean
#> [1] 4
#> 
#> $variance
#> [1] 8
#>