The function 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{\cdot}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
<model terms>
, 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.