powered by
This function calculates the terms found in the numerator and denominator sums for the ordinary version of the negative binomial scan statistic.
negbin_score_terms(table)
A data.table with columns location, duration, mu, overdispersion, count.
data.table
location, duration, mu, overdispersion, count
A data.table with columns location, duration, num, denom.
location, duration, num, denom