set_transmat: Save Transmission Matrix

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

set_transmatR Documentation

Save Transmission Matrix

Description

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

Usage

set_transmat(dat, del, at)

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.

Value

The updated netsim_dat main list object.


EpiModel documentation built on Oct. 12, 2024, 1:06 a.m.