Data likelihood fuction for zero-inflated Poisson model
regression using zero_poisson
.
loglik_zip(y, z, lam, p)
numeric response vector.
vector of binary operators. z == 0
for observations
considered belnging to the negative binomial distribution, z == 1
for observations considered to be 'extra' zeros.
current value for the Poisson likelihood lambda parameter.
vector of 'extra' zero-count probabilities.
The log-likelihood of the zero-inflated Poisson fit for the current iteration of the MCMC algorithm.