Poisson Log-Likelihood

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.5,4), 3)
#> Warning: non-integer x = 3.500000
#> [1] -1.901388      -Inf -1.783605