R: k-Stars

kstar-ergmTerm {ergm} | R Documentation

## k-Stars

### Description

This term adds one network statistic to the model for each element in `k` . The i th such statistic counts the number of distinct `k[i]` -stars in the network, where a k -star is defined to be a node N and a set of k different nodes {O[1], ..., O[k]} such that the ties {N, O[i]} exist for i=1, …, k . If this is specified then the count is over the number of k -stars where all nodes have the same value of the attribute. 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` | quantitative attribute (see Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)
`levels` | TODO (See Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)

### See Also

`ergmTerm` for index of model terms currently visible to the package.

[Package ergm version 4.2.1 Index]