b2factordistinct-ergmTerm-076e6026: Number of distinct neighbor types for the second mode

b2factordistinct-ergmTermR Documentation

Number of distinct neighbor types for the second mode

Description

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.

Usage

# binary: b2factordistinct(attr, levels=TRUE)

Arguments

attr

a vertex attribute specification (see Specifying Vertex attributes and Levels (?nodal_attributes) for details.)

levels

this optional argument controls which levels of the attribute attributes and Levels (?nodal_attributes) for details.)

Details

This is a network analogue of the statistic introduced by \insertCiteHoBl23m;textualergm.

References

\insertAllCited

See Also

ergmTerm for index of model terms currently visible to the package.

\Sexpr[results=rd,stage=render]{ergm:::.formatTermKeywords("ergmTerm", "b2factordistinct", "subsection")}

ergm documentation built on April 3, 2025, 7:53 p.m.