Convert surveil
model results to age standardized rates using a fixed age distribution
standardize(x, label, standard_pop)
A fitted surveil
model
Labels (character strings) for the age groups that correspond to the values of stand_pop
. The labels must match the grouping variable used to fit the model (i.e., all(label %in% names(x$data$cases))
must be true).
Standard population values corresponding to the age groups specified by label
A list, also of class "stand_surveil", containing the entire contents of the user-provided surveil
model plus the following:
summary data frame of standardized rates (means and 95 percent credible intervals)
a data frame of Markov chain Monte Carlo (MCMC) samples from the posterior probability distribution for the standardized rates
user-provided age-group labels
user-provided standardized population sizes (ordered as standard_label
)