Estimate the variances for the supplied counts. It is assumed that variances are constant over time for each location.
estimate_variances(counts, baselines = NULL, population = NULL,
constant_dim = 1)
A matrix of observed counts. Rows indicate time (ordered from most recent) and columns indicate locations.
A matrix of the same dimensions as counts
(optional).
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
.
An integer. If equal to 1, variances are assumed to be constant over time but different between locations. If equal to 2, variances are assumed to vary over time but at each time point be equal for all locations.
A matrix of variances of the same dimensions as counts
.