initialize.net: Initialization: netsim Module

View source: R/net.mod.init.R

initialize.netR Documentation

Initialization: netsim Module

Description

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.

Usage

initialize.net(x, param, init, control, s)

Arguments

x

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.

param

An EpiModel object of class param.net.

init

An EpiModel object of class init.net.

control

An EpiModel object of class control.net.

s

Simulation number, used for restarting dependent simulations.

Details

When re-initializing a simulation, the netsim object passed to initialize.net must contain the elements param, nwparam, epi, coef.form, and num.nw.

Value

A netsim_dat class main data object.


EpiModel documentation built on Oct. 12, 2024, 1:06 a.m.