generate_counts: Generate normal counts

Description Usage Arguments Value Examples

View source: R/sim.R

Description

Generates counts from a normal distribution density function.

Usage

1
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

1
2
3
4
# 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)

impactflu documentation built on Jan. 14, 2020, 5:06 p.m.