nodefactormeanage-ergmTerm-11ed6b41: Average ages of extant half-ties incident on nodes of...

nodefactor.mean.age-ergmTermR Documentation

Average ages of extant half-ties incident on nodes of specified attribute levels

Description

Average ages of extant half-ties incident on nodes of specified attribute levels

Usage

# binary: nodefactor.mean.age(attr, levels=NULL, emptyval=0, log=FALSE)

Arguments

attr

a vertex attribute specification (see Specifying Vertex attributes and Levels (?nodal_attributes) for details.)

levels

controls what levels are included. Note that the default levels value for nodefactor.mean.age retains all levels, unlike the default for nodefactor , which omits the first level.

emptyval

can be used to specify the value returned if the network is empty. A different value may be specified for each level of attr. The length of emptyval should either be 1 (in which case that value is used for every level of attr ) or should be equal to the number of retained levels of attr , in which case the i th value in emptyval is used for the i th retained level of attr. 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.

log

logical specifying if mean log age should be returned instead of mean age

Details

This term adds one statistic for each level of attr , equaling the average, over all half-ties incident on nodes of that level, of the amount of time elapsed since formation.

See Also

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

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

tergm documentation built on May 31, 2023, 8:29 p.m.