F-ergmTerm {ergm}R Documentation

Filtering on arbitrary one-term model

Description

Evaluates the given formula on a network constructed by taking yy and removing any edges for which fi,j(yi,j)=0f_{i,j}(y_{i,j}) = 0 .

Usage

# binary: F(formula, filter)

Arguments

formula

a one-sided ergm()-style formula with the terms to be evaluated

filter

must contain one binary ergm term, with the following properties:

  • dyadic independence;

  • dyadwise contribution of 0 for a 0-valued dyad.

Formally, this means that it is expressable as

g(y)=i,jfi,j(yi,j),g(y) = \sum_{i,j} f_{i,j}(y_{i,j}),

where for all ii, jj, and yy, fi,j(yi,j)f_{i,j}(y_{i,j}) for which fi,j(0)=0f_{i,j}(0)=0. For convenience, the term in specified can be a part of a simple logical or comparison operation: (e.g., ~!nodematch("A") or ~abs("X")>3), which filters on fi,j(yi,j)0f_{i,j}(y_{i,j}) \bigcirc 0 instead.

See Also

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

Keywords

operator, binary


[Package ergm version 4.6.0 Index]