demo_model(nodes = 1, days = 1000, model = c("SISe", "SISe3", "SISe_sp"))
Arguments
nodes
Number of nodes in the model. Default is 1.
days
Number of days to model. Initializes tspan to
{0, 1, ..., days - 1}. Default is 1000 days.
model
The name of the model. Default is 'SISe'.
Value
A model
Examples
## Create a 'SISe3' demo model with 1 node and
## initialize it to run over 1000 days.
model <- demo_model(nodes = 1, days = 1000, model = "SISe3")
result <- run(model)
plot(result)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(SimInf)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SimInf/demo_model.Rd_%03d_medium.png", width=480, height=480)
> ### Name: demo_model
> ### Title: Generate a model for demonstration
> ### Aliases: demo_model
>
> ### ** Examples
>
> ## Create a 'SISe3' demo model with 1 node and
> ## initialize it to run over 1000 days.
> model <- demo_model(nodes = 1, days = 1000, model = "SISe3")
> result <- run(model)
> plot(result)
>
>
>
>
>
> dev.off()
null device
1
>