ergm
package
that evaluates the graphlet degree distribution of a network for a given graphlet
orbit.
grorbitDist(grorbit, d)
grorbitDist
term. The question that the change score
function of this term answers is: how do the number of nodes having graphlet degree
n for orbit i change when an edge is flipped? This term has two arguments:
grorbit
and d
. The grorbit
argument is a vector of distinct
integers representing the list of graphlet orbits to include into the model. The
d
argument is a vector of distinct integers. This terms adds one network
statistic to the model for each pairwise combination of the arguments in
grorbit
and d
vectors. The statistic for the combination of
(i, j) is equals to the number of nodes in the network that have graphlet degree
j for orbit i. This term is defined for the 15 graphlet orbits corresponding to
graphlets with up to 4 nodes. Therefore, grorbit
accepts values between 0 and
14. Graphlets of size 5 are omitted for this term because of the high computational
complexity of the change score computation of the term. This term is defined for
undirected networks.
ergm
is used to fit linear
exponential random graph models, in which the
probability of a given network, $y$, on a set of nodes
is $\exp{\theta *
g(y)}/c(\theta)$, where $g(y)$ is a vector of network
statistics for $y$, $\theta$ is a parameter vector of the same
length and $c(\theta)$ is the normalizing constant for the distribution.The network statistics $g(y)$ are entered as terms in the
function call to ergm
. The ergm
package contains
a wide range of terms. For the details on the possible
, see ergm-terms
.
The ergm.userterms
package provides a template for
adding new terms. The terms can be used throughout the ergm
package
and behave identically to the supplied terms.