Learn R Programming

scanstatistics (version 1.1.1)

estimate_baselines: Estimate baselines based on observed counts.

Description

Estimate the baselines (expected values) for the supplied counts.

Usage

estimate_baselines(counts, population = NULL)

Value

A matrix of baselines of the same dimensions as counts.

Arguments

counts

A matrix of observed counts. Rows indicate time (ordered from most recent) and columns indicate locations.

population

A matrix or vector of populations for each location (optional). If a matrix, should be of the same dimensions as counts. If a vector, should be of the same length as the number of columns in counts.