Learn R Programming

RGAP (version 0.1.1)

.meanStd2GammasNu: Converts the mean and standard deviation of a Gamma-distributed variable into the parameters \(s\) and \(\nu\).

Description

Converts the mean and standard deviation of a Gamma-distributed variable into the parameters \(s\) and \(\nu\).

Usage

.meanStd2GammasNu(m, std)

Value

A vector with parameters \(s\) and \(\nu\).

Arguments

m

mean parameter

std

standard deviation

Details

The parameters s and nu are related to the regular shape \(\alpha\) and rate \(\beta\) parametrization in the following way: \(\alpha = \nu / 2\) \(\beta = s / 2\)