maxdegree-term: Maximum Degree Term for the 'ergm' Package

Description Details The Maximum Degree Term Author(s) References See Also Examples

Description

This term counts the number of nodes in the network with a given degree or less.

Details

This is a trivial modification of the mindegree term in the ergm.userterms package and the ergm.useterms tutorials.

The Maximum Degree Term

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.

Author(s)

David Hunter, Steve Goodreau, Mark Handcock, Carter Butts

References

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/.

See Also

statnet, network, ergm, ergm-terms

Examples

1
2
3
4
5
6
data(florentine)
summary(flomarriage~maxdegree(3))
summary(flomarriage~maxdegree(1,by="priorates"))

fit <- ergm(flomarriage~edges+maxdegree(1,by="priorates"))
summary(fit)

statnet/ergm.terms.contrib documentation built on May 30, 2019, 10:40 a.m.