powered by
Computes the pdf and cdf of the Gamma distribution.
log_gamma(y, a1, a2, c_under = 1e-09)
A list containing the following entries
natural logarithm of the pdf, evaluated at each datapoint.
natural logarithm of the CDF, evaluated at each datapoint.
observed data
shape parameter
rate parameter
A small positive value corresponding to the underflow threshold, e.g. c_under = 1e-9.
Panagiotis Papastamoulis
dgamma
log_gamma(y = 1:10, a1 = 1, a2 = 1, c_under = 1e-9)
Run the code above in your browser using DataLab