This function calculates the logarithm of the expectation-based Poisson statistic for each space-time window, given already calculated relative risks and aggregate counts and mus.
poisson_statistic(table)
A data.table
with columns zone, duration, count,
mu, relrisk
. The columns count
and mu
contain the sums
of the counts and mus for the locations inside each zone and up to the
given duration. The column relrisk
contains the maximum likelihood
estimate for the relative risk for each zone-duration combination.
A data.table
with columns zone, duration, statistic
.
The column statistic
contains the logarithm of the statistic for
each zone-duration combination.