| degreedist {ergm} | R Documentation |
The degreedist function computes and returns the degree distribution (number of vertices in the network with each degree value) for a given network.
The degreedistfactor function returns the cross table of the degree
distribution for a network and a given factor (vertex attribute name)
degreedist(g, print = TRUE)
g |
a |
print |
logical, whether to print the degree distribution; default=TRUE |
Calculates the degrees using the appropriate ergm terms for for network type.
if directed – a matrix of the distributions of in and out degrees; this is row bound and only contains degrees for which one of the in or out distributions has a positive count
if bipartite – a list containing the degree distributions of b1 and b2
otherwise – a vector of the positive values in the degree distribution
data(faux.mesa.high) degreedist(faux.mesa.high)