Skip to contents

Gamma Log-Likelihood

Usage

log_lik_gamma(x, shape = 1, rate = 1)

Arguments

x

A numeric vector of values.

shape

A non-negative numeric vector of shape.

rate

A non-negative numeric vector of rate.

Value

An numeric vector of the corresponding log-likelihoods.

Examples

log_lik_gamma(c(0, 1, 2), 1, 2)
#> [1]  0.6931472 -1.3068528 -3.3068528