This function initializes the main netsim_dat class data
object on which data are stored, simulates the initial state of
the networks, and simulates disease status and other attributes.
initialize.net(x, param, init, control, s)A netsim_dat class main data object.
If control$start == 1, either a fitted network model object
of class netest or a list of such objects. If
control$start > 1, an object of class netsim. When
multiple networks are used, the node sets (including network size
and nodal attributes) are assumed to be the same for all networks.
An EpiModel object of class param.net.
An EpiModel object of class init.net.
An EpiModel object of class control.net.
Simulation number, used for restarting dependent simulations.
When re-initializing a simulation, the netsim object passed
to initialize.net must contain the elements param,
nwparam, epi, coef.form, and num.nw.