sim_nets_t1: Initialize Networks Used in netsim

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

sim_nets_t1R Documentation

Initialize Networks Used in netsim

Description

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.

Usage

sim_nets_t1(dat)

Arguments

dat

Main netsim_dat object containing a networkDynamic object and other initialization information passed from netsim.

Value

The updated netsim_dat main list object.


statnet/EpiModel documentation built on April 26, 2024, 3:23 a.m.