Given a number of possible infection years, simulates attack rates from a log normal distribution with specified mean and standard deviation.
simulate_attack_rates( infection_years, mean_par = 0.15, sd_par = 0.5, large_first_year = FALSE, big_year_mean = 0.5 )
| infection_years | the number of infection years |
|---|---|
| mean_par | the mean of the log normal |
| sd_par | the sd of the log normal |
| large_first_year | simulate an extra large attach rate in the first year? |
| big_year_mean | if large first year, what mean to use? |
a vector of attack rates
Other simulation_functions:
simulate_data(),
simulate_group(),
simulate_individual_faster(),
simulate_individual(),
simulate_infection_histories()