View source: R/SIR_Gillespie.R
Takes parameters for an SIR Infectious Process and returns either an event table or panel data Initial State, a vector of length N stating who is which infectious state and the current time. Track specific people Infection Matrix Last and unused panels
1 2 3 4 5 6 7 8 9 10 11 12 13 | SIR_Gillespie(
N,
initial_state = "start",
beta,
gamma,
trans = possible_transitions(1:3),
obs_end = Inf,
kernel = NULL,
U,
E,
output = "event",
obs_times = NULL
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.