InvGamma {MCMCpack} | R Documentation |
Density function and random generation from the inverse Gamma distribution.
rinvgamma(n, shape, rate = 1) dinvgamma(x, shape, rate = 1)
x |
Scalar location to evaluate density. |
n |
Number of draws from the distribution. |
shape |
Scalar shape parameter. |
rate |
Scalar rate parameter (default value one). |
dinvgamma
evaluates the density at x
. rinvgamma
takes
n
draws from the inverse Gamma distribution. The parameterization is
consistent with the Gamma Distribution in the stats package.
density <- dinvgamma(4.2, 1.1) draws <- rinvgamma(10, 3.2)