invGammaLogLikelihood: Inverse gamma log-likelihood

View source: R/RcppExports.R

invGammaLogLikelihoodR Documentation

Inverse gamma log-likelihood

Description

Used in calculating model probability in Metropolis-Hastings algorithm when proposals are from the inverse-Gamma distribution.

Usage

invGammaLogLikelihood(x, shape, scale)

Arguments

x

- double; the value to calculate the likelihood of.

shape

- double; the shape of the inverse-Gamma distribution.

scale

- double; the scale of the inverse-Gamma distribution

Value

the unnormalised log-likelihood of x in a inverse-Gamma with parameters shape and scale.


batchmix documentation built on May 29, 2024, 2:14 a.m.