The code's the same as for any mixture. lp1 and lp2 are
the log densities for the mixture component, theta is the
mixture proportion and log_mix(theta, lp1, lp2) is the
way to code it. We need to update some of the discussion of
mixtures in the manual to use the more efficient log_mix function.
And we could use one on the logit scale for theta.
The ecologists do zero inflation for models for animal
movement when they don't move. The other component is
a positive-constrained continuous density.
- Bob
P.S. The "hurdle" model is a pure mixture, but that's with
a truncated Poisson that doesn't produce zeroes. At least
it's two pmfs. In this case, it's a pmf and a pdf, which is
OK, but doesn't fit into intro math stats books because it's
neither a pdf or pmf itself!