Generates counts from a normal distribution density function.
generate_counts(init_pop_size, n_timepoints, overall_prop, mean, sd)
Initial population size
Number of timepoints
Overall proportion of the population to be included in the counts over all the timepoints
Mean of the normal distribution
Standard deviation of the normal distribution
An integer vector of counts of length n_timepoints
n_timepoints
# 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