loglik_zinb: Zero-inflated Negative Binomial Data Likelihood

Description Usage Arguments Value Author(s) See Also

Description

Data likelihood fuction for zero-inflated negative binomial model regression using zero_nb.

Usage

1
loglik_zinb(y, z, mu, size, p)

Arguments

y

numeric response vector.

z

vector of binary operators. z == 0 for observations considered belnging to the negative binomial distribution, z == 1 for observations considered to be 'extra' zeros.

mu

current value for the negative binomial likelihood mu parameter.

size

size parameter for negative binomial distribution.

p

vector of 'extra' zero-count probabilities.

Value

The log-likelihood of the zero-inflated negative binomial fit for the current iteration of the MCMC algorithm.

Author(s)

Taylor Trippe <ttrippe@luc.edu>
Earvin Balderama <ebalderama@luc.edu>

See Also

zero_nb


hurdlr documentation built on May 2, 2019, 3:19 p.m.

Related to loglik_zinb in hurdlr...