Description Details The Maximum Degree Term Author(s) References See Also Examples
This term counts the number of nodes in the network with a given degree or less.
This is a trivial modification of the mindegree
term in the ergm.userterms
package and the ergm.useterms tutorials.
maxdegree(maxdeg, by=NULL)
Minimum Degree:
The maxdeg
argument is an integer. This
term adds one
network statistic to the model being the
number of nodes in the network of at most degree maxed
.
That is, the statistic equals the number of nodes in the
network with maxdeg
or less edges.
The optional argument
by
is a character string giving the name of an
attribute in the
network's vertex attribute list.
If this is specified,
then degrees are calculated using the subnetwork consisting
of only
edges whose endpoints have the same value of the by
attribute.
This term can only be used with undirected networks.
David Hunter, Steve Goodreau, Mark Handcock, Carter Butts
Hunter DR, Goodreau SM, Handcock MS (2013). ergm.userterms: A Template Package for Extending statnet, Journal of Statistical Software 52(2), 1-25, URL http://www.jstatsoft.org/v52/i02/.
statnet, network, ergm, ergm-terms
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.