SIS-class | R Documentation |
Class to handle the SIS SimInf_model
.
The SIS model contains two compartments; number of susceptible (S), and number of infectious (I). Moreover, it has two state transitions,
S -- beta S I / N --> I
I -- gamma I --> S
where β is the transmission rate, γ is the recovery rate, and N=S+I.
## Create an SIS model object. model <- SIS(u0 = data.frame(S = 99, I = 1), tspan = 1:100, beta = 0.16, gamma = 0.077) ## Run the SIS model and plot the result. set.seed(22) result <- run(model) plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.