Description Usage Arguments Details Value
View source: R/draw_distributions.R
Distancing behaviour is defined as a number between 0 and 1, representing the relative number of contacts the subject encounters (i.e. 0.6 means the subject reduces contact to 60% of the non-distancing population.)
1 | draw_contact_rate(n_cases, sim_params, sim_status)
|
n_cases |
Number of cases required |
sim_params |
|
sim_status |
|
Current implementation assume that either the entire population has the same distancing behaviour or that the population can be divided into two groups: one that is practicing distancing and one that is not. User provides parameters such as the fraction of the general population that is distancing and the relative contact rate of the distancing population. This relative contact rate can change once, at the time point provided by the user.
Note: The ratio of distancers to non-distancers of new cases is not the same as the ratio amongst the general population (user-provided values). This is because new cases do not arise from the general population but from the population that is in contact with others. Therefore, the fraction of distancers being infected would generally be lower than the fraction of distancers in the general population.
A vector of length n for the contact_rate (double)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.