Calculate the logarithm of the ZIP statistic for each space-time window, summing over the locations and times in the window.
zip_calculations(table, zones, ...)
A data.table
with columns location, duration, mu,
p, count
. The column mu
contains the Poisson expected value
parameters, the column p
contains the excess zero probabilities.
A set
of zones, each zone itself being a set
containing locations. Locations should be encoded as integers.
Arguments passed to simulate_zip_scanstatistic
.
A data.table
with columns zone, duration, statistic
.