Learn R Programming

bayesCureRateModel (version 1.5)

log_gamma: PDF and CDF of the Gamma distribution

Description

Computes the pdf and cdf of the Gamma distribution.

Usage

log_gamma(y, a1, a2, 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

shape parameter

a2

rate parameter

c_under

A small positive value corresponding to the underflow threshold, e.g. c_under = 1e-9.

Author

Panagiotis Papastamoulis

See Also

Examples

Run this code
log_gamma(y = 1:10, a1 = 1, a2 = 1, c_under = 1e-9)

Run the code above in your browser using DataLab