Learn R Programming

DescTools (version 0.99.60)

mgamma: 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)

Value

List with mean and variance

Arguments

shape

Shape parameter

rate

Rate parameter

See Also

Examples

Run this code
mgamma(shape = 2, rate = 0.5)

Run the code above in your browser using DataLab