edgecovmeanage-ergmTerm-46204f5f: Weighted average age of an extant tie

edgecov.mean.age-ergmTermR Documentation

Weighted average age of an extant tie

Description

Weighted average age of an extant tie

Usage

# binary: edgecov.mean.age(x, attrname=NULL, emptyval=0)

Arguments

x, attrname

either a square matrix of covariates, one for each possible edge in the network, the name of a network attribute of covariates, or a network; if the latter, or if the network attribute named by x is itself a network, optional argument attrname provides the name of the quantitative edge attribute to use for covariate values (in this case, missing edges in x are assigned a covariate value of zero).

emptyval

can be used to specify the value returned if the network is empty (or all extant edges have been weighted 0). This is, technically, an arbitrary value, but it should not have a substantial effect unless a non-negligible fraction of networks at the parameter configuration of interest is empty and/or if only a few dyads have nonzero weights.

Details

This term adds one statistic equaling the average, over all ties present in the network, of the amount of time elapsed since formation, weighted by a (nonnegative) dyadic covariate.

The behavior when there are negative weights is undefined.

See Also

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

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

statnet/tergm documentation built on Jan. 31, 2024, 12:10 p.m.