assign_degree: Assign Degree Vertex Attribute on Network Objects

Description Usage Arguments Details

Description

Assigns the degree vertex attributes on network objects conditional on their values from the other networks.

Usage

1
assign_degree(nw, deg.type, nwstats)

Arguments

nw

Object of class network that is the target for the vertex attribute.

deg.type

Type of degree to assign to nw, with options of "pers" to assign casual degree onto main network and "main" to assign main degree to casual network.

nwstats

Object of class nwstats.

Details

This function assigns the degree of other networks as a vertex attribute on the target network given a bivariate degree mixing matrix of main, casual, and one-partnerships contained in the nwstats data.


dth2/EpiModelHIV_SHAMP documentation built on May 15, 2019, 4:56 p.m.