Learn R Programming

MCMCpack (version 0.4-5)

rinvgamma: 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

Run this code
draws <- rinvgamma(10, 3.2)

Run the code above in your browser using DataLab