| epiworld-transmissions | R Documentation |
Transmission edges, including seeded infections (source = -1).
get_transmissions(x)
x |
An object of class |
The function get_transmissions includes the seeded infections, with the
source column coded as -1.
The function get_transmissions returns a data.frame with the following
columns: date, source, target, virus_id, virus, and source_exposure_date.
# SEIR Connected model
seirconn <- ModelSEIRCONN(
name = "Disease",
n = 10000,
prevalence = 0.1,
contact_rate = 2.0,
transmission_rate = 0.8,
incubation_days = 7.0,
recovery_rate = 0.3
)
set.seed(937)
run(seirconn, 50)
# Get transmission data
head(get_transmissions(seirconn))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.