log_gamma_mixture: PDF and CDF of a Gamma mixture distribution
Description
Computes the logarithm of the probability density function and cumulative density function per observation for each observation under a Gamma mixture model.
Usage
log_gamma_mixture(y, a1, a2, p, c_under = 1e-09)
Value
A list containing the following entries
log_f
natural logarithm of the pdf, evaluated at each datapoint.
log_F
natural logarithm of the CDF, evaluated at each datapoint.
Arguments
y
observed data
a1
vector containing the shape parameters of each Gamma mixture component
a2
vector containing the rate parameters of each Gamma mixture component