nodemix-ergmTerm {ergm} | R Documentation |
Nodal attribute mixing
Description
By default, this term adds one network statistic to the model for each possible pairing of attribute values. The statistic equals the number of edges in the network in which the nodes have that pairing of values. (When multiple attributes are specified, a statistic is added for each combination of attribute values for those attributes.) In other words, this term produces one statistic for every entry in the mixing matrix for the attribute(s). By default, the ordering of the attribute values is lexicographic: alphabetical (for nominal categories) or numerical (for ordered categories).
Usage
# binary: nodemix(attr, base=NULL, b1levels=NULL, b2levels=NULL, levels=NULL, levels2=-1)
# valued: nodemix(attr, base=NULL, b1levels=NULL, b2levels=NULL, levels=NULL,
# levels2=-1, form="sum")
Arguments
attr |
a vertex attribute specification (see Specifying Vertex attributes and Levels ( |
base |
deprecated |
b1levels , b2levels , levels |
control what statistics are included in the model and the order in which they appear. |
levels2 |
similar to the other levels arguments above and applies to all networks. Optionally allows a factor or character matrix to be specified to group certain levels. Level combinations corresponding to |
form |
character how to aggregate tie values in a valued ERGM |
Note
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
.
The argument base
is retained for backwards compatibility and may be
removed in a future version. When both base
and levels2
are passed,
levels2
overrides base
.
See Also
ergmTerm
for index of model terms currently visible to the package.
Keywords
categorical nodal attribute, directed, dyad-independent, frequently-used, undirected, binary, valued