generate_counts {impactflu} | R Documentation |
Generate normal counts
Description
Generates counts from a normal distribution density function.
Usage
generate_counts(init_pop_size, n_timepoints, overall_prop, mean, sd)
Arguments
init_pop_size |
Initial population size |
n_timepoints |
Number of timepoints |
overall_prop |
Overall proportion of the population to be included in the counts over all the timepoints |
mean |
Mean of the normal distribution |
sd |
Standard deviation of the normal distribution |
Value
An integer vector of counts of length n_timepoints
Examples
# Tokars (2018) vaccinations
vacs_tok <- generate_counts(1e6, 304, 0.55, 100, 50)
# Tokars (2018) cases
casen_tok <- generate_counts(1e6, 304, 0.12, 190, 35)
[Package impactflu version 0.1.0 Index]