Data likelihood fuction for zero-inflated negative binomial
model regression using zero_nb
.
loglik_zinb(y, z, mu, size, 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 negative binomial likelihood mu parameter.
size parameter for negative binomial distribution.
vector of 'extra' zero-count probabilities.
The log-likelihood of the zero-inflated negative binomial fit for the current iteration of the MCMC algorithm.