This function initializes the networks used in
netsim
. The initial edge set for a given network
is obtained either from simulating the cross-sectional model
(if edapprox == TRUE
) or from the newnetwork
element of the netest
object (if
edapprox == FALSE
). Once the initial edge sets are
determined, the first time step is simulated if
resimulate.network == TRUE
, and all time steps are
simulated if resimulate.network == FALSE
. Initializes the
num(.g2)
epi fields used in
edges_correct
for computing edge coefficient
adjustments.
Arguments
- dat
Main
netsim_dat
object containing anetworkDynamic
object and other initialization information passed fromnetsim
.