F-ergmTerm-1029798a: Filtering on arbitrary one-term model

F-ergmTermR Documentation

Filtering on arbitrary one-term model

Description

Evaluates the given formula on a network constructed by taking y and removing any edges for which f_{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) = \sum_{i,j} f_{i,j}(y_{i,j}),

where for all i, j, and y, f_{i,j}(y_{i,j}) for which f_{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 f_{i,j}(y_{i,j}) \bigcirc 0 instead.

See Also

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

\Sexpr[results=rd,stage=render]{ergm:::.formatTermKeywords("ergmTerm", "F", "subsection")}

statnet/ergm documentation built on April 17, 2024, 12:21 p.m.