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

See Also

dgamma

Examples

mgamma(shape = 2, rate = 0.5)

DescTools documentation built on April 4, 2025, 1:55 a.m.