nodecov-ergmTerm {ergm} | R Documentation |
Main effect of a covariate
Description
This term adds a single network statistic for each quantitative attribute or matrix column to the model equaling the sum of
attr(i)
and attr(j)
for all edges (i,j)
in the
network. For categorical attributes, see nodefactor
. Note that for
directed networks, nodecov
equals nodeicov
plus
nodeocov
.
Usage
# binary: nodecov(attr)
# binary: nodemain
# valued: nodecov(attr, form="sum")
# valued: nodemain(attr, form="sum")
Arguments
attr |
a vertex attribute specification (see Specifying Vertex attributes and Levels ( |
form |
character how to aggregate tie values in a valued ERGM |
Note
ergm versions 3.9.4 and earlier used different arguments for this
term. See ergm-options
for how to invoke the old behaviour.
See Also
ergmTerm
for index of model terms currently visible to the package.
Keywords
directed, dyad-independent, frequently-used, quantitative nodal attribute, undirected, binary, valued