Learn R Programming

EpiModel (version 2.2.1)

update_cumulative_edgelist: 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)

Value

An updated Master list object of network models

Arguments

dat

Master list object of network models.

network

Numerical index of the network for which the cumulative edgelist will be updated.

truncate

After how many time steps a partnership that is no longer active should be removed from the output (default = Inf means no subsetting of output).

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` (default), 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.