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.
Arguments
- x
If
control$start == 1, either a fitted network model object of classnetestor a list of such objects. Ifcontrol$start > 1, an object of classnetsim. When multiple networks are used, the node sets (including network size and nodal attributes) are assumed to be the same for all networks.- param
An
EpiModelobject of classparam.net.- init
An
EpiModelobject of classinit.net.- control
An
EpiModelobject of classcontrol.net.- s
Simulation number, used for restarting dependent simulations.