Average ages of extant half-ties incident on nodes of specified attribute levels
# binary: nodefactor.mean.age(attr, levels=NULL, emptyval=0, log=FALSE)
a vertex attribute specification (see Specifying Vertex attributes and Levels (?nodal_attributes
) for details.)
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.
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.
logical specifying if mean log age should be returned instead of mean age
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.
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "nodefactor.mean.age", "subsection")