View source: R/simulation_base_functions.R
simulate_transmission | R Documentation |
Simulate transmission using contact network.
simulate_transmission( NW_SIM = NA, input_location = "Networks/example.network.Rdata", PCR = F, RDT = F, len_sim = 100 )
NW_SIM |
A list of two object, which is the output of network_generate function. |
input_location |
A file location to read the NW_SIM object. |
PCR |
logical True means PCR test is deployed for the containment |
RDT |
logical True means rapid diagnostic tests are deployed for the containment |
len_sim |
numeric number of days to simulate for the outbreak, default 100. |
a dataframe contains the simulated results.
para <- init_para() para$community.pop_sz <- 200 nw <- network_generate(para) rslt <- simulate_transmission(PCR = FALSE, RDT = FALSE) # simulate a transmission without any containment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.