Learn R Programming

scanstatistics (version 0.1.0)

kulldorff_baseline: Estimate the baselines (expected counts) by the Kulldorff method.

Description

Estimates the baselines, which are the expected counts, by setting the expected count for a given time point and location to be the total count for that time point multiplied by the proportion of all counts for that location.

Usage

kulldorff_baseline(counts)

Arguments

counts

A data.table with columns stream, location, time, count, keyed by the first three columns in that order.

Value

A data.table with columns stream, location, time, count, baseline. Key columns are stream, location, time in that order.