Learn R Programming

EpiModel (version 2.6.2)

tedgelist_cumulative_degree: Cumulative Degree of Each Node in a Timed Edgelist

Description

Cumulative Degree of Each Node in a Timed Edgelist

Usage

tedgelist_cumulative_degree(tedgelist, n, window, unique.partners = TRUE)

Value

An integer vector of length n, giving the number of partners each node has over window.

Arguments

tedgelist

A timed edgelist, as produced by networkDynamic::as.data.frame.networkDynamic.

n

Size of the network the edgelist was simulated on.

window

Length-2 numeric of the first and last time step to observe.

unique.partners

If TRUE, count distinct partners rather than distinct partnerships.