dinvgamma: Inverse Gamma Density Function

Description Usage Arguments

Description

Computes the (log) density of the inverse gamma distribution using either the scale or rate parametrization. The scale parametrization has expected value of scale/(shape - 1)

Usage

1
dinvgamma(x, shape, rate, scale = 1/rate, log = FALSE)

Arguments

x

vector of nonnegative values.

shape, scale

shape and scale parameters. Must be stricly positive.

rate

alternative way to specify scale.

log

logical; if TRUE, density calculations are computed on the log scale.


wzhorton/hortonlib documentation built on May 9, 2019, 8:19 a.m.