Learn R Programming

scanstatistics (version 1.0.1)

poisson_score: Compute the Poisson score for each priority subset, for each duration.

Description

Compute the Poisson score for each priority subset, for each duration.

Usage

poisson_score(counts, baselines, priority_indices)

Arguments

counts

A matrix of observed counts. Rows represent timepoints, ordered from most recent to most distant. Columns represent e.g. locations or data streams.

baselines

A matrix of expected counts with the same dimensions as counts.

priority_indices

A matrix of the same size as the input. On each row (duration), column numbers are given in order of priority.

Value

A matrix of the same dimension as the input matrices.