This function adds a column for the maximum likelihood estimate for the relative risk (assumed to be 1 or greater). The table should contain the aggregates (sums) of the counts and expected value parameters for each zone and duration.
poisson_relrisk(table)
A data.table
with columns zone, duration, count,
mu
. The latter two are the sums of observed counts and estimated expected
value parameters for the locations comprising the zone and up to the given
duration (i.e. cumulative sum for the duration).
The same table, with an extra column relrisk
.