Learn R Programming

ERPeq (version 0.1.0)

pdfinvgamma: Probability density function of the inverse gamma distribution

Description

Probability density function of the inverse gamma distribution

Usage

pdfinvgamma(par, x)

Value

return the value of the pdf of the inverse gamma distribution

Arguments

par

parameter vector of the inverse gamma distribution. First parameter is the shape, second is the rate parameter.

x

vector of observations or single value

References

Cook, J. D. (2008). Inverse gamma distribution. online: http://www. johndcook. com/inverse gamma. pdf, Tech. Rep.

Examples

Run this code
pdfinvgamma(c(2,5,3),3)

Run the code above in your browser using DataLab