Learn R Programming

scanstatistics (version 0.1.0)

negbin_score_terms: Computes the numerator and denominator terms for the NegBin score.

Description

This function calculates the terms found in the numerator and denominator sums for the ordinary version of the negative binomial scan statistic.

Usage

negbin_score_terms(table)

Arguments

table

A data.table with columns location, duration, mu, overdispersion, count.

Value

A data.table with columns location, duration, num, denom.