update_cumulative_edgelist {EpiModel}R Documentation

Update a Cumulative Edgelist of the Specified Network

Description

Update a Cumulative Edgelist of the Specified Network

Usage

update_cumulative_edgelist(dat, network, truncate = 0)

Arguments

dat

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

network

Numerical index of the network for which the cumulative edgelist will be updated. (May be > 1 for models with multiple overlapping networks.)

truncate

After how many time steps a partnership that is no longer active should be removed from the output.

Value

The updated netsim_dat main list object.

Truncation

To avoid storing a cumulative edgelist too long, the truncate parameter defines a number of steps after which an edge that is no longer active is truncated out of the cumulative edgelist. When truncate = Inf, no edges are ever removed. When truncate = 0, only the active edges are kept. You may want this behavior to keep track of the active edges' start step.


[Package EpiModel version 2.4.0 Index]