This function calculates a term which appears in the sum of the logarithm of the zero-inflated Poisson statistic for a given space-time window.
zip_statistic_term(q, p, dstar, ddagger, mu, y)
Scalar; the relative risk.
Numeric vector of excess zero probabilities.
Numeric vector of estimates of the excess zero indicators, under
the alternative hypothesis of an outbreak. Of same length as p
.
Numeric vector of estimates of the excess zero indicators,
under the null hypothesis of no outbreak. Of same length as p
.
Numeric vector of given/estimated Poisson expected value
parameters. Of same length as p
.
Integer vector of observed counts. Of same length as p
.
A numeric vector of same length as input vector p
.