sqrt.triangle-ergmTerm | R Documentation |
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.
# binary: sqrt.triangle
# binary: sqrt.triangle.aux
ergmTerm
for index of model terms currently visible to the package.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.