dinvgaussian: Log-density of inverse Gaussian

View source: R/invgaussian_couplings.R

dinvgaussianR Documentation

Log-density of inverse Gaussian

Description

Computes log-pdf at x > 0 of inverse Gaussian with given parameters mu, lambda, given by

0.5 * log(λ/(2*π)) - 1.5 * log(x) - λ * (x-μ)^2 / (2 * μ^2 * x)

Usage

dinvgaussian(x, mu, lambda)

Value

A vector of n log-pdf values, one for each element in the first argument 'x'.


pierrejacob/debiasedmcmc documentation built on Aug. 22, 2022, 12:41 a.m.