rinvgamma {MCMCpack} | R Documentation |
This function generates a random draw from the Inverse Gamma distribution.
rinvgamma(n, shape, rate = 1)
n |
Number of draws from the distribution. |
shape |
Scalar shape parameter. |
rate |
Scalar rate parameter (default value one). |
n
draws from the Inverse Gamma distribution. The
parameterization is consistent with the Gamma Distribution in the
base package.
draws <- rinvgamma(10, 3.2)