tierecip: Calculate node-level tie reciprocity

View source: R/tierecip.R

tierecipR Documentation

Calculate node-level tie reciprocity

Description

Calculate proportion of reciprocal ties out of total ties for each node from an edgelist.

Usage

tierecip(el, type = "all")

Arguments

el

Edgelist with "from" and "to" columns

type

Character string; either "all" (default; calculates node-level reciprocity using all nodes and ties in edgelist) or "complete" (calculates reciprocity only based on nominees who had the potential to reciprocate because they completed the network survey–this assumes that all individuals who completed the survey and no individuals who did not are listed in the 'from' column)

Details

Base calculations either on all nodes and ties in edgelist or only on those who had the opportunity to nominate ties (e.g., completed the network survey). Self-loops (individuals nominating themselves) are not included. Individuals who nominated 0 ties or just themselves have a reciprocity of NaN.

Value

A dataframe containing node IDs and tie reciprocity proportions


kturetsky/sneasy documentation built on Aug. 29, 2022, 7:11 a.m.