This term adds multiple network statistics to the
model, one for each of (a subset of) the unique values of the
attr
attribute (or each combination of the attributes
given). Each of these statistics gives the number of times a node
with that attribute or those attributes appears in an edge in the
network.
# binary: nodefactor(attr, base=1, levels=-1)# valued: nodefactor(attr, base=1, levels=-1, form="sum")
a vertex attribute specification (see Specifying Vertex attributes and Levels (?nodal_attributes
) for details.)
deprecated
this optional argument controls which levels of the attribute should be included and which should be excluded. (See Specifying Vertex
attributes and Levels (?nodal_attributes
) for details.)
how to aggregate tie values in a valued ERGM: "sum"
(the default) for a statistic of the form \(\sum_{i,j} x_{i,j}
y_{i,j}\), where \(y_{i,j}\) is
the value of dyad \((i,j)\) and \(x_{i,j}\) is the
term's covariate associated with it; and "nonzero"
with the
edge considered to be present if its value is not 0. See
ergmTerm
for more information.
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "nodefactor", "subsection")