logdgammaMixture: Compute log density of a gamma mixture
Description
Computes the log density of a mixture of a gamma distribution and a point mass at zero
$log((1-p)I(\mu_i=0) + p \text{dgamma}(\mu_i, \alpha, \beta))$Usage
logdgammaMixture(mui, shape, rate, prob)
Arguments
mui
density is evaluated at $\mu_i$
shape
shape parameter $\alpha$ of the gamma distribution
rate
rate parameter $\beta$ of the gamma distribution
prob
mixture probability $p$