triangle-ergmTerm | R Documentation |
By default, this term adds one statistic to the model equal to the number of triangles
in the network. For an undirected network, a triangle is defined to be any
set \{(i,j), (j,k), (k,i)\} of three edges. For a directed network, a
triangle is defined as any set of three edges (i,j)
and (j,k) and either (k,i)
or (i,k) . The former case is called a "transitive
triple" and the latter is called a "cyclic triple", so in the case of a
directed network, triangle
equals ttriple
plus ctriple
— thus at most two of these three terms can be in a model.
# binary: triangle(attr=NULL, diff=FALSE, levels=NULL) # binary: triangles(attr=NULL, diff=FALSE, levels=NULL)
attr, diff |
quantitative attribute (see Specifying Vertex attributes and Levels ( |
levels |
add one statistic for each value specified if |
ergmTerm
for index of model terms currently visible to the package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.