For a random variable x, the density function of Inverse-Gamma distribution is defined as: $$(rate^shape)/Gamma(shape) x^{-shape-1} exp(-rate/x)$$
dInvGamma(x, shape, scale, LOG = TRUE)
numeric, positive numeric values.
numeric, the shape parameter of gamma distribution.
numeric, the scale, or inverse-scale parameter of gamma distribution. The 'rate' parameter in Gamma is the 'scale' parameter in InvGamma
logical, return log density of LOG=TRUE, default TRUE.
A numeric vector, the density values.