Description Usage Arguments Value
View source: R/Gamma_Inference.r
Generation random samples from Inverse-Gamma distribution. For a random variable x, the density function is defined as:
(rate^shape)/Gamma(shape) x^{-shape-1} exp(-rate/x)
Where Gamma() is the Gamma function.
1 |
n |
integer, number of samples to be generated. |
shape |
numeric, the shape parameter of gamma distribution. |
scale |
numeric, the scale, or inverse-scale parameter of gamma distribution. The 'rate' parameter in Gamma is the 'scale' parameter in InvGamma. |
A numeric vector, samples of Inverse-Gamma distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.