Learn R Programming

scanstatistics (version 0.1.0)

simulate_poisson_scanstatistic: Simulate a single expectation-based Poisson scan statistic.

Description

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

Usage

simulate_poisson_scanstatistic(table, zones)

Arguments

table

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

zones

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

Value

A scalar; the scan statistic for the simulated data.