Learn R Programming

scanstatistics (version 0.1.0)

negbin_score: Computes the ordinary score for each space-time window.

Description

Computes the score statistic for each space-time window, assuming an ordinary outbreak/event/anomaly model and either a Poisson or a negative binomial distribution for the counts.

Usage

negbin_score(table)

Arguments

table

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

Value

A data.table with columns zone, duration, statistic.