By default, this term adds one statistic to the model, equal to the number of transitive
triples in the network, defined as a set of edges \(\{(i{\rightarrow}j),
j{\rightarrow}k), (i{\rightarrow}k)\}\) . Note that
triangle
equals ttriple+ctriple
for a directed network, so at
most two of the three terms can be in a model.
# binary: ttriple(attr=NULL, diff=FALSE, levels=NULL)# binary: ttriad
a vertex attribute specification (see Specifying Vertex attributes and Levels (?nodal_attributes
) for details.)
If attr
is specified and diff
is FALSE
,
then the count is over the number of transitive triples where all three nodes have the same value of
the attribute. If attr
is specified and diff
is TRUE
,
then one statistic is added for each value of attr
,
equal to the number of triangles where all three nodes have that value of the attribute.
add one statistic for each value specified if diff
is TRUE
. (See Specifying Vertex
attributes and Levels (?nodal_attributes
) for details.)
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "ttriple", "subsection")