View source: R/baseline_estimation.R
estimate_variances | R Documentation |
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 )
counts |
A matrix of observed counts. Rows indicate time (ordered from most recent) and columns indicate locations. |
baselines |
A matrix of the same dimensions as |
population |
A matrix or vector of populations for each location
(optional). If a matrix, should be of the same dimensions as
|
constant_dim |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.