Learn R Programming

EpiModel (version 2.5.0)

set_transmat: Save Transmission Matrix

Description

This function appends the transmission matrix created during infection.net and infection.2g.net.

Usage

set_transmat(dat, del, at)

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.

del

Discordant edgelist created within infection.net and infection.2g.net.

at

Current time step.

Details

This internal function works within the parent infection.net functions to save the transmission matrix created at time step at to the main netsim_dat class object dat.