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 classnetest
or 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
EpiModel
object of classparam.net
.- init
An
EpiModel
object of classinit.net
.- control
An
EpiModel
object of classcontrol.net
.- s
Simulation number, used for restarting dependent simulations.