ergmx.atxbxreciprocity#

ergmx.atxbxreciprocity(attr, decay=0.6931471805599453, levels=None, fixed=True, cutoff=30)#

ATXBXreciprocity: over reciprocated pairs of B-arcs, g(the A vertices X-tied to both). For directed two-level networks, as MPNet: the levels are the values of the vertex attribute attr, A and B (levels=(A, B), or the attribute’s two values, sorted); A-ties and B-ties are arcs within each level, and X-ties (affiliations) the arcs from an A vertex to a B vertex (fix the dyads from B to A with blocks()). in(v) and out(v) are a vertex’s in- and out-degrees within its level, x(v) its X-ties. decay weights the alternating statistic geometrically, as gwesp’s: g(d) = exp(decay) (1 - (1 - exp(-decay))^d), MPNet’s lambda being exp(decay) (its default, 2, is decay=log(2)). It is fixed by default, as in MPNet; with fixed=FALSE, it is estimated, as ergm’s curved terms (see Curved), for the terms with one alternating part.