Learn R Programming

scanstatistics (version 0.1.0)

poisson_calculations: Calculate the expectation-based Poisson statistic for each space-time window.

Description

Calculate the expectation-based Poisson statistic for each space-time window, given the initial data of counts and mus.

Usage

poisson_calculations(table, zones)

Arguments

table

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

zones

A list or set of zones, each zone itself a set containing one or more locations of those found in table.

Value

A data.table with columns zone, duration, statistic. The column statistic contains the logarithm of the statistic for each zone-duration combination.