Computes one or more factors in the product of the numerator or denominator of the EB-ZIP window statistic (i.e. the one calculated for a given space-time window W). Should be able to handle cases where p = 0.
zip_statistic_factor(p, d, mu, y, tol = 1e-08)
Numeric vector of excess zero probabilities.
Numeric vector of estimates of the excess zero indicators. 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
.
Scalar; probability p below this is considered equal to zero.
A numeric vector of same length as input vector p
.