R: Categorical absolute difference in nodal attribute

absdiffcat-ergmTerm {ergm} | R Documentation

## Categorical absolute difference in nodal attribute

### Description

This term adds one statistic for every possible nonzero distinct value of `abs(attr[i]-attr[j])` in the network. The value of each such statistic is the number of edges in the network with the corresponding absolute difference.

### Usage

    # binary: absdiffcat(attr,
    #                 base=NULL,
    #                 levels=NULL)

    # valued: absdiffcat(attr,
    #                 base=NULL,
    #                 levels=NULL,
    #                 form="sum")

### Arguments

`attr` | quantitative attribute (see Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)
`base` | deprecated
`levels` | specifies which nonzero difference to include in or exclude from the model. (See Specifying Vertex attributes and Levels (`?nodal_attributes`) for details.)
`form` | character how to aggregate tie values in a valued ERGM

### Note

ergm versions 3.9.4 and earlier used different arguments for this term. See `ergm-options` for how to invoke the old behaviour.

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`.

### See Also

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

[Package ergm version 4.2.1 Index]