R: Degree range for the second mode in a bipartite network

b2degrange-ergmTerm {ergm} | R Documentation

## Degree range for the second mode in a bipartite network

### Description

This term adds one network statistic to the model for each element of `from` (or `to` ); the i th such statistic equals the number of nodes of the second mode ("events") in the network of degree greater than or equal to `from[i]` but strictly less than `to[i]` , i.e. with edge count in semiopen interval `[from,to)` .

This term can only be used with bipartite networks; for directed networks see `idegrange` and `odegrange` . For undirected networks, see `degrange` , and see `b1degrange` for degrees of the first mode ("actors").

### Usage

    # binary: b2degrange(from, to=+Inf, by=NULL, homophily=FALSE, levels=NULL)

### Arguments

`from, to` | vectors of distinct integers. If one of the vectors have length 1, it is recycled to the length of the other. Otherwise, it must have the same length.
`by, homophily` | the optional argument `by` specifies a vertex attribute (see Specifying Vertex attributes and Levels (`?nodal_attributes`) for details). If this is specified and `homophily` is `TRUE` , then degrees are calculated using the subnetwork consisting of only edges whose endpoints have the same value of the `by` attribute. If `by` is specified and `homophily` is `FALSE` (the default), then separate degree range statistics are calculated for nodes having each separate value of the attribute.
`levels` | TODO (See Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)

### See Also

`ergmTerm` for index of model terms currently visible to the package.

[Package ergm version 4.2.2 Index]