Skip to contents

Poisson Log-Likelihood

Usage

log_lik_pois(x, lambda = 1)

Arguments

x

A non-negative whole numeric vector of values.

lambda

A non-negative numeric vector of means.

Value

An numeric vector of the corresponding log-likelihoods.

Examples

log_lik_pois(c(1, 3, 4), 3)
#> [1] -1.901388 -1.495923 -1.783605