Learn R Programming

MCMCpack (version 0.4-5)

dinvgamma: Evaluate the Density of the Inverse Gamma Distribution

Description

This evaluates the density of the Inverse Gamma Distribution at the value x.

Usage

dinvgamma(x, shape, rate=1)

Arguments

x
Scalar location to evaluate density.
shape
Scalar shape parameter.
rate
Scalar rate parameter (default value one).

Value

  • The density evaluated at x. The parameterization is consistent with the Gamma Distribution in the base package.

See Also

rinvgamma, GammaDist

Examples

Run this code
density <- dinvgamma(4.2, 1.1)

Run the code above in your browser using DataLab