rinvgamma {MCMCpack}R Documentation

Generate Random Draw from Inverse Gamma Distribution

Description

This function generates a random draw from the Inverse Gamma distribution.

Usage

   rinvgamma(n, shape, rate = 1)

Arguments

n Number of draws from the distribution.
shape Scalar shape parameter.
rate Scalar rate parameter (default value one).

Value

n draws from the Inverse Gamma distribution. The parameterization is consistent with the Gamma Distribution in the base package.

See Also

dinvgamma, GammaDist

Examples

  draws <- rinvgamma(10, 3.2)

[Package Contents]