# NOT RUN {
## Create a SIR model object.
model <- SIR(u0 = data.frame(S = 99, I = 1, R = 0),
tspan = 1:100,
beta = 0.16,
gamma = 0.077)
## Run the SIR model and plot the result.
result <- run(model, threads = 1, seed = 22)
plot(result)
# }
Run the code above in your browser using DataLab