This term adds a single network statistic to the model, counting, for each node, the number of distinct values of the attribute found among its neighbors.
# binary: nodeofactordistinct(attr, levels=TRUE)
a vertex attribute specification (see Specifying Vertex attributes and Levels (?nodal_attributes
) for details.)
this optional argument controls which levels of the attribute
attributes and Levels (?nodal_attributes
) for details.)
This is a network analogue of the statistic introduced by HoBl23m;textualergm.
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "nodeofactordistinct", "subsection")