Learn R Programming

SimBIID (version 0.2.2)

print.SimBIID_runs: Prints SimBIID_runs objects

Description

Print method for SimBIID_runs objects.

Usage

# S3 method for SimBIID_runs
print(x, ...)

Value

Summary outputs printed to the screen.

Arguments

x

A SimBIID_runs object.

...

Not used here.

See Also

mparseRcpp, plot.SimBIID_runs, run

Examples

Run this code
# \donttest{
## 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
# }

Run the code above in your browser using DataLab