This term takes two nodal attributes. Assuming that there are
\(n_1\) values of b1attr
among the b1 nodes and \(n_2\)
values of b2attr
among the b2 nodes, then the total number of
distinct categories of two stars according to these two attributes is
\(n_1(n_2)(n_2+1)/2\). By default, this model term creates a distinct statistic
counting each of these categories.
# binary: b1twostar(b1attr, b2attr, base=NULL, b1levels=NULL, b2levels=NULL, levels2=NULL)
b1 nodes (actors in some contexts) (see Specifying Vertex attributes and Levels (?nodal_attributes
) for details)
b2 nodes (events in some contexts). If b2attr
is not passed, it is assumed to be the same as b1attr
.
used to leave some of the categories out (see Specifying Vertex attributes and Levels (?nodal_attributes
) for details)
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "b1twostar", "subsection")