b1factor-ergmTerm {ergm} | R Documentation |
Factor attribute effect for the first mode in a bipartite network
Description
This term adds multiple network statistics to the model, one for each of (a subset of) the
unique values of the attr
attribute. Each of these statistics
gives the number of times a node with that attribute in the first mode of
the network appears in an edge. The first mode of a bipartite network object
is sometimes known as the "actor" mode.
Usage
# binary: b1factor(attr, base=1, levels=-1)
# valued: b1factor(attr, base=1, levels=-1, form="sum")
Arguments
attr |
a vertex attribute specification (see Specifying Vertex attributes and Levels ( |
base |
deprecated |
levels |
this optional argument controls which levels of the attribute
attributes and Levels ( |
form |
character how to aggregate tie values in a valued ERGM |
Note
To include all attribute values is usually not a good idea, because
the sum of all such statistics equals the number of edges and hence a linear
dependency would arise in any model also including edges
. The default,
levels=-1
, is therefore to omit the first (in lexicographic order)
attribute level. To include all levels, pass either levels=TRUE
(i.e., keep all levels) or levels=NULL
(i.e., do not filter levels).
The argument base
is retained for backwards compatibility and may be
removed in a future version. When both base
and levels
are passed,
levels
overrides base
.
This term can only be used with undirected bipartite networks.
See Also
ergmTerm
for index of model terms currently visible to the package.
Keywords
bipartite, categorical nodal attribute, dyad-independent, frequently-used, undirected, binary, valued