Description Usage Arguments Value See Also Examples
View source: R/printSimBIID_runs.R
Print method for SimBIID_runs
objects.
1 2 |
x |
A |
... |
Not used here. |
Summary outputs printed to the screen.
mparseRcpp
, plot.SimBIID_runs
, run
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## set up SIR simulation model
transitions <- c(
"S -> beta * S * I -> I",
"I -> gamma * I -> R"
)
compartments <- c("S", "I", "R")
pars <- c("beta", "gamma")
model <- mparseRcpp(
transitions = transitions,
compartments = compartments,
pars = pars,
tspan = TRUE
)
## run 100 replicate simulations and
## plot outputs
sims <- run(
model = model,
pars = c(beta = 0.001, gamma = 0.1),
tstart = 0,
tstop = 100,
u = c(S = 119, I = 1, R = 0),
tspan = seq(1, 100, length.out = 10),
nrep = 100
)
sims
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.