Learn R Programming

sna (version 0.41)

grecip: Compute the Reciprocity of an Input Graph or Graph Stack

Description

grecip calculates the dyadic reciprocity of the elements of dat selected by g.

Usage

grecip(dat, g = NULL, measure = c("dyadic", "edgewise"))

Arguments

dat
An adjacency matrix, or stack thereof
g
A vector indicating which matrices to evaluate (optional)
measure
One of "dyadic" (default) or "edgewise"

Value

  • The graph reciprocity value(s)

Details

The dyadic reciprocity of a graph is the proportion of dyads which are symmetric; this is computed and returned by grecip for the graphs indicated. Note that the dyadic reciprocity is distinct from the edgewise or tie reciprocity, which is the proportion of edges which are reciprocated. This latter form may be obtained by setting measure="edgewise".

References

Wasserman, S., and Faust, K. (1994). ``Social Network Analysis: Methods and Applications.'' Cambridge: Cambridge University Press.

See Also

mutuality, symmetrize

Examples

Run this code
#Calculate the dyadic reciprocity scores for some random graphs
grecip(rgraph(10,5))

Run the code above in your browser using DataLab