sqrttriangle-ergmTerm-c7f8ea09: Square root of the number of triangles

sqrt.triangle-ergmTermR Documentation

Square root of the number of triangles

Description

These terms add one network statistic to the model, the square root of the number of triangles. They demonstrate the private and auxiliary storage mechanisms. The change statistic for the square root of the number of triangles depends on the initial number of triangles, so it is costly to compute – unless one can keep track of the number of triangles. These terms can only be used with undirected networks.

Usage

# binary: sqrt.triangle

# binary: sqrt.triangle.aux

See Also

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

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

Examples


data(florentine)

sqrt(summary(flomarriage~triangle))
summary(flomarriage~sqrt.triangle)

stopifnot(sqrt(summary(flomarriage~triangle)) == summary(flomarriage~sqrt.triangle))

summary(flomarriage~sqrt.triangle.aux)

stopifnot(sqrt(summary(flomarriage~triangle)) == summary(flomarriage~sqrt.triangle.aux))

statnet/ergm.userterms documentation built on June 11, 2025, 4:02 p.m.