Learn R Programming

scanstatistics (version 0.1.0)

calc_zipstat_over_duration: Calculate the ZIP window statistic over all durations, for a given zone.

Description

This function calculates the zero-inflated Poisson statistic for a given spatial zone, for all durations considered.

Usage

calc_zipstat_over_duration(table, maxdur, ...)

Arguments

table

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

maxdur

An integer; the maximum duration considered.

...

Arguments passed to window_zip_statistic.

Value

A list with two elements:

duration

Vector of integers from 1 to maxdur.

statistic

Numeric vector containing the ZIP statistics corresponding to each duration, for the given spatial zone.