View source: R/net.scenarios.R
use_scenario | R Documentation |
Apply a scenario object to a param.net object
use_scenario(param, scenario)
param |
Object of class |
scenario |
a scenario object usually created from a |
An updated list object of class param.net
, which can be passed to the
EpiModel function netsim
.
A scenario is a list containing an "id" field, the name of the scenario and
a ".param.updater.list" containing a list of updaters that modifies the
parameters of the model at given time steps. If a scenario contains a
parameter not defined in the param
object, an error will be produced.
See the vignette "model-parameters" for the technical detail of their
implementation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.