dInvGamma: Density function of Inverse-Gamma distribution

Description Usage Arguments Value

View source: R/Gamma_Inference.r

Description

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)

Usage

1
dInvGamma(x, shape, scale, LOG = TRUE)

Arguments

x

numeric, positive numeric values.

shape

numeric, the shape parameter of gamma distribution.

scale

numeric, the scale, or inverse-scale parameter of gamma distribution. The 'rate' parameter in Gamma is the 'scale' parameter in InvGamma

LOG

logical, return log density of LOG=TRUE, default TRUE.

Value

A numeric vector, the density values.


chenhaotian/Bayesian-Bricks documentation built on Jan. 25, 2021, 10:02 a.m.