Hierarchical exponential-family random graph models with local dependence can be specified by calling the function hergm(formula),
where formula is a formula of the form network ~ terms.
By specifying suitable terms,
it is possible to specify a wide range of models: see hergm.
hergm.terms can be found here.
In addition, ergm.terms can be used to include covariates.
adding the term edges_i to the model adds node-dependent edge terms to the model;
please note: the term edges_i can be used with method = "bayes" but cannot be used with the default method = "ml".
adding the term arcs_i to the model adds node-dependent outdegree terms to the model;
please note: the term arcs_i can be used with method = "bayes" but cannot be used with the default method = "ml".
adding the term arcs_j to the model adds node-dependent indegree terms to the model;
please note: the term arcs_j can be used with method = "bayes" but cannot be used with the default method = "ml".
adding the term edges_ij to the model adds block-dependent edge terms to the model.
adding the term mutual_i to the model adds additive, block-dependent mutual edge terms to the model.
adding the term mutual_ij to the model adds block-dependent mutual edge terms to the model.
adding the term twostar_ijk to the model adds block-dependent two-star terms to the model;
adding the term transitiveties_ijk to the model adds block-dependent transitive ties terms to the model.
adding the term triangle_ijk to the model adds block-dependent triangle terms to the model.
adding the term ttriple_ijk to the model adds block-dependent transitive triple terms to the model;
please note: the term ttriple_ijk can be used with method = "bayes" but cannot be used with the default method = "ml".
adding the term ctriple_ijk to the model adds block-dependent cyclic triple terms to the model;
please note: the term ctriple_ijk can be used with method = "bayes" but cannot be used with the default method = "ml".
Schweinberger, M. and P. Luna (2018). HERGM: Hierarchical exponential-family random graph models. Journal of Statistical Software, 85, 1--39.
hergm, ergm.terms