dInvGamma {bbricks}R Documentation

Density function of Inverse-Gamma distribution

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

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.


[Package bbricks version 0.1.4 Index]