print.SimBIID_runs {SimBIID}R Documentation

Prints SimBIID_runs objects

Description

Print method for SimBIID_runs objects.

Usage

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

Arguments

x

A SimBIID_runs object.

...

Not used here.

Value

Summary outputs printed to the screen.

See Also

mparseRcpp, plot.SimBIID_runs, run

Examples


## 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



[Package SimBIID version 0.2.1 Index]