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.
See also
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.
Examples
# 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
#> Model Parameters
#> ---------------------------
#> inf.prob = multilayer(0.45, 0.1)
#> act.rate = 1