impactflu (version 0.1.0)

generate_counts: 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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab