dist_ll
is the data likelihood fuction for hurdle model
regression using hurdle
.
dist_ll(y, hurd = Inf, lam = NULL, size = 1, mu = NULL, xi = NULL,
sigma = NULL, dist = c("poisson", "nb", "lognormal", "gpd"), g.x = F,
log = T)
numeric response vector.
numeric threshold for 'extreme' observations of two-hurdle
models. Inf
for one-hurdle models.
current value for the poisson likelihood lambda parameter.
size parameter for negative binomial likelihood distributions.
current value for the negative binomial or log normal likelihood mu parameter.
current value for the generalized pareto likelihood xi parameter.
current value for the generalized pareto likelihood sigma parameter.
character specification of response distribution.
logical operator. TRUE
if operating within the third
component of the likelihood function (the likelihood of 'extreme' observations).
logical operator. if TRUE
, probabilities p are given
as log(p).
The log-likelihood of the zero-inflated Poisson fit for the current iteration of the MCMC algorithm.
Currently, Poisson, Negative Binomial, log-Normal, and Generalized Pareto distributions are available.