Learn R Programming

scanstatistics (version 0.1.0)

simulate_zip_scanstatistic: Simulate a single expectation-based ZIP-EM scan statistic.

Description

Simulate zero-inflated -distributed data according to the supplied parameters and calculate the value of the expectation-based Poisson scan statistic.

Usage

simulate_zip_scanstatistic(table, zones, ...)

Arguments

table

A data.table with columns location, duration, p, mu. The column mu contains the Poisson expected values, 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 zip_calculations.

Value

A scalar; the expectation-based ZIP-EM scan statistic for the simulated data.