View source: R/simulate_data.R
simulate_attack_rates | R Documentation |
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,
n_groups = 1
)
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? |
n_groups |
defaults to 1, otherwise gives an attack rate vector for each group |
a matrix of attack rates for each group
Other simulation_functions:
simulate_data()
,
simulate_infection_histories()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.