kstar-ergmTerm {ergm} | R Documentation |
-stars
Description
This term adds one
network statistic to the model for each element in k
. The th
such statistic counts the number of distinct
k[i]
-stars in the
network, where a -star is defined to be a node
and a set of
different nodes
such that the ties
exist for
.
This term can only be used for undirected networks; for directed
networks, see
istar
, ostar
, twopath
and m2star
.
Note that kstar(1)
is equal to edges
.
Usage
# binary: kstar(k, attr=NULL, levels=NULL)
Arguments
k |
a vector of distinct integers |
attr , levels |
a vertex attribute specification; if |
See Also
ergmTerm
for index of model terms currently visible to the package.
Keywords
categorical nodal attribute, undirected, binary