| initialize.net | R Documentation |
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)
x |
If |
param |
An |
init |
An |
control |
An |
s |
Simulation number. When restarting, every simulation restarts from
the first simulation of |
When re-initializing a simulation, the netsim object passed
to initialize.net must contain the elements nwparam, epi,
run, coef.form, and num.nw. The parameters are taken from
param alone, which must hold all the parameters of the model:
the ones of x are not used. The internal groups parameter is
restored from the run sublist of x.
A netsim_dat class main data object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.