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.


bbricks documentation built on July 8, 2020, 7:29 p.m.