Formula: \(\mu = \frac{\mathrm{shape}}{\mathrm{rate}}\) \(\mathrm{Var}(X) = \frac{\mathrm{shape}}{\mathrm{rate}^2}\)
mgamma(shape, rate)
List with mean and variance
Evans, M., Hastings, N., and Peacock, B. (2000). Statistical Distributions. Wiley.
mgamma(shape = 2, rate = 0.5)
#> $mean
#> [1] 4
#>
#> $variance
#> [1] 8
#>