| multilayer | R Documentation |
This utility function allows specification of certain
netsim() controls and parameters to vary by network. The
netsim() control arguments currently supporting
multilayer specifications are nwstats.formula,
set.control.ergm, set.control.tergm, and
tergmLite.track.duration. The param.net() parameters
supporting them are inf.prob, inf.prob.g2, and
act.rate, which the built-in infection modules then apply
per layer.
multilayer(...)
... |
control arguments or parameter values to apply to each network, with the index of the network corresponding to the index of the argument |
an object of class multilayer containing the specified
control arguments or parameter values
netsim() for passing a list of netest() fits and netclique()
layers, one per network. The
Multi-Layer Networks
chapter of the Network Modeling for Epidemics course materials works
through a two-layer model in full.
# A household layer that transmits more per contact than the community layer
param <- param.net(inf.prob = multilayer(0.45, 0.10), act.rate = 1)
param
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.