Estimates the baselines, which are the expected counts, by setting the expected count for a given time point and location to be the total count for that time point multiplied by the proportion of all counts for that location.
kulldorff_baseline(counts)
A data.table
with columns
stream, location, time, count
, keyed by the first three columns in
that order.
A data.table
with columns
stream, location, time, count, baseline
. Key columns are
stream, location, time
in that order.