Description Usage Arguments Value Examples
Replays an outbreak up until a specific point in time
1 | replay_outbreak(full_outbreak)
|
full_outbreak |
the full outbreak datasets |
a list with named components having functions (replay/isolate_at) operating on the outbreak
1 2 3 4 5 6 7 8 9 10 | set.seed(1235)
SI <- distcrete("gamma", 1L, w = 0, 10, 0.65)
d_contacts <- distcrete("exp", 1L, w=0, 0.05)
x <- contact_outbreak(3, 1.8, SI$r, d_contacts$r, max_cases = 10)
replay <- replay_outbreak(x)
plot(replay$replay(99))
outbreak_2 <- replay$isolate_at(2, 24)
plot(outbreak_2$replay(99))
outbreak_3 <- outbreak_2$isolate_at(3, 25)
plot(outbreak_3$replay(99))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.