View source: R/simulate_epidemics.R
simulate_infection_times | R Documentation |
Infection times are simulated using the probability of infection and sample size n.
simulate_infection_times(n, prob_infection, overall_prob = NULL)
n |
Sample size. Must be an integer. |
prob_infection |
A vector containing probabilities of infection. |
overall_prob |
The overall probability of infection. NULL by default. |
Returns a vector of infection times.
James Hay, jhay@hsph.harvard.edu
Other simulation functions:
simulate_observations_wrapper()
,
simulate_reporting()
,
simulate_seir_process()
,
simulate_seir_wrapper()
,
simulate_viral_loads_wrapper()
,
simulate_viral_loads()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.