ergmConstraint {ergm}R Documentation

Sample Space Constraints for Exponential-Family Random Graph Models

Description

This page describes how to specify the constraints on the network sample space (the set of possible networks Y, the set of networks y for which h(y)>0) and sometimes the baseline weights h(y) to functions in the ergm package. It also provides an indexed list of the constraints visible to the ergm's API.

Specifying constraints

In an exponential-family random graph model (ERGM), the probability or density of a given network, y in sample space Y, on a set of nodes is

h(y) exp{eta(theta).g(y)} / c(theta),

where h(y) is the reference distribution (particularly for valued network models), g(y) is a vector of network statistics for y, η(θ) is a natural parameter vector of the same length (with eta(theta)=theta for most terms), . is the dot product, and c(theta) is the normalizing constant for the distribution. A complete ERGM specification requires a list of network statistics g(y) and (if applicable) their η(θ) mappings provided by a formula of ergmTerms; and, optionally, sample space Y and reference distribution h(y) information provided by ergmConstraints and, for valued ERGMs, by ergmReferences. Constraints typically affect Y, or, equivalently, set h(y)=0 for some y, but some (“soft” constraints) set h(y) to values other than 0 and 1.

A constraints formula is a one- or two-sided formula whose left-hand side is an optional direct selection of the InitErgmProposal function and whose right-hand side is a series of one or more terms separated by "+" and "-" operators, specifying the constraint.

The sample space (over and above the reference distribution) is determined by iterating over the constraints terms from left to right, each term updating it as follows:

For example, a constraints formula ~a-b+c-d with all constraints dyadic will allow dyads permitted by either a or b but only if they are also permitted by c; as well as all dyads permitted by d. If A, B, C, and D were logical matrices, the matrix of variable dyads would be equal to ((A|B)&C)|D.

Terms with a positive sign can be viewed as "adding" a constraint while those with a negative sign can be viewed as "relaxing" a constraint.

The constraints formula can also contain a .. If present, %ergmlhs% attributes constraints and constraints.obs will be substituted in its place.

Constraints visible to the package

All constraints

Constraints by keywords

References


[Package ergm version 4.2.2 Index]