zip_calculations: Calculate the (logarithm of the) ZIP statistic for each...

Description Usage Arguments Value

View source: R/scan_zip.R

Description

Calculate the logarithm of the ZIP statistic for each space-time window, summing over the locations and times in the window.

Usage

1

Arguments

table

A data.table with columns location, duration, mu, p, count. The column mu contains the Poisson expected value parameters, the column p contains the excess zero probabilities.

zones

A set of zones, each zone itself being a set containing locations. Locations should be encoded as integers.

...

Arguments passed to simulate_zip_scanstatistic.

Value

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


scanstatistics documentation built on May 30, 2017, 4:44 a.m.

Search within the scanstatistics package
Search all R packages, documentation and source code