computeGammaMoments: Compute the mean and variance of the Gamma distribution from...

View source: R/numericFunctions.R

computeGammaMomentsR Documentation

Compute the mean and variance of the Gamma distribution from the shape and rate or scale parameters

Description

Compute the mean and variance of the Gamma distribution from the shape and rate or scale parameters

Usage

computeGammaMoments(shape, rate = 1, scale = 1/rate)

Arguments

shape

Gamma distribution shape parameter

rate

Gamma distribution rate parameter

scale

Gamma distribution scale = 1 / rate

Value

A list containing the mean and variance of the Gamma distribution

Author(s)

Steve Gutreuter


sgutreuter/SGmisc documentation built on Aug. 25, 2024, 7:21 p.m.