absdiff-ergmTerm | R Documentation |
This term adds one network statistic to the model equaling
the sum of abs(attr[i]-attr[j])^pow
for all edges (i,j)
in
the network.
# binary: absdiff(attr,
# pow=1)
# valued: absdiff(attr,
# pow=1,
# form="sum")
attr |
a vertex attribute specification (see Specifying Vertex attributes and Levels ( |
pow |
power to which to take the absolute difference |
form |
character how to aggregate tie values in a valued ERGM |
ergm versions 3.9.4 and earlier used different arguments for this
term. See ergm-options
for how to invoke the old behaviour.
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.