Learn R Programming

PIGShift (version 1.0.1)

dnorminvgamma: Compute the pdf for normal-inverse-gamma random variates

Description

This function returns the normal-inverse-gamma density evaluated at specific points

Usage

dnorminvgamma(x, alpha, beta, log = FALSE)

Arguments

x
a vector of points at which to evaluat the density
alpha
shape parameter of the inverse gamma distribution
beta
scale parameter of the inverse gamma distribution
log
a logical indicated whether to return the log of the pdf

Value

A vector densities corresponding to the entries of x