Learn R Programming

EpiModel (version 2.5.0)

simulate_dat: Simulate a Network for a Specified Number of Time Steps

Description

This function simulates a dynamic network over one or multiple time steps for TERGMs or one or multiple cross-sectional network panels for ERGMs, for use in netsim modeling. Network statistics are also extracted and saved if save.nwstats == TRUE and resimulate.network == FALSE.

Usage

simulate_dat(dat, at, network = 1L, nsteps = 1L)

Value

The updated netsim_dat main list object.

Arguments

dat

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

at

Current time step.

network

index of the network to simulate

nsteps

number of time steps to simulate