R: Transitive triples

ttriple-ergmTerm {ergm} | R Documentation

## Transitive triples

### Description

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,j), (j,k), (i,k)} . Note that `triangle` equals `ttriple+ctriple` for a directed network, so at most two of the three terms can be in a model.

### Usage

    # binary: ttriple(attr=NULL, diff=FALSE, levels=NULL)

    # binary: ttriad

### Arguments

`attr, diff` | quantitative attribute (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.
`levels` | add one statistic for each value specified if `diff` is `TRUE`. (See Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)
`attr` | quantitative attribute (see Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)

### Note

This term can only be used with directed networks.

### See Also

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

[Package ergm version 4.2.1 Index]