estimate_baselines: Estimate baselines based on observed counts.

View source: R/baseline_estimation.R

estimate_baselinesR Documentation

Estimate baselines based on observed counts.

Description

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

Usage

estimate_baselines(counts, population = NULL)

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.

Value

A matrix of baselines of the same dimensions as counts.


scanstatistics documentation built on Feb. 16, 2023, 10:32 p.m.