R: Computes and Returns the Degree Distribution Information for...

degreedist {ergm} | R Documentation

## Computes and Returns the Degree Distribution Information for a Given Network

### Description

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)

### Usage

    degreedist(g, print = TRUE)

### Arguments

`g` | a `network` object
`print` | logical, whether to print the degree distribution; default=TRUE

### Details

Calculates the degrees using the appropriate ergm terms for for network type.

### Value

- 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

### Examples

    data(faux.mesa.high)
    degreedist(faux.mesa.high)

[Package ergm version 3.8.0 Index]