discord_edgelist: Discordant Edgelist from NetworkDynamic Object

Description Usage Arguments Details Value See Also

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

Description

This function returns a data.frame with a discordant edgelist, defined as the set of edges in which the status of the two partners is one susceptible and one infected.

Usage

1

Arguments

dat

Master list object containing a networkDynamic object and other initialization information passed from netsim.

at

Current time step.

Details

This internal function works within the parent infection.net function to pull the current edgelist from the dynamic network object, look up the disease status of the head and tails on the edge, and subset the list to those edges with one susceptible and one infected node.

Value

This function returns a data.frame with the following columns:

The output from this function is added to the transmission data.frame object that is requested as output in netsim simulations with the save.trans=TRUE argument.

See Also

netsim, infection.net


EpiModel documentation built on April 10, 2018, 9:05 a.m.