degrange-ergmTerm {ergm} | R Documentation |
Degree range
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 in the network of degree
greater than or equal to
from[i]
but strictly less than to[i]
, i.e. with edges
in semiopen interval [from,to)
.
Usage
# binary: degrange(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 , levels , homophily |
the optional argument |
Details
This term can only be used with undirected networks; for directed networks
see idegrange
and odegrange
. This term can be used
with bipartite networks, and will count nodes of both first and second mode in
the specified degree range. To count only nodes of the first mode ("actors"), use b1degrange
and to count only those fo the second mode ("events"), use b2degrange
.
See Also
ergmTerm
for index of model terms currently visible to the package.
Keywords
categorical nodal attribute, undirected, binary