Learn R Programming

scanstatistics (version 0.1.0)

zip_statistic: Calculates the ZIP statistic for each space-time window.

Description

Calculates the zero-inflated Poisson statistic for each space-time window, using the EM algorithm.

Usage

zip_statistic(table, ...)

Arguments

table

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

...

Any of the following named parameters:

maxdur

As in calc_zipstat_over_duration.

d_init

As in link{window_zip_statistic}.

tol

As in link{window_zip_statistic}.

Value

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