Simulate zero-inflated -distributed data according to the supplied parameters and calculate the value of the expectation-based Poisson scan statistic.
simulate_zip_scanstatistic(table, zones, ...)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.
A set of zones, each zone itself being a set
containing locations. Locations should be encoded as integers.
Arguments passed to zip_calculations.
A scalar; the expectation-based ZIP-EM scan statistic for the simulated data.