Skip to contents

Correlation between X[i,j] and X[j,i]. Only defined for square (unipartite) networks. For bipartite networks, use stat_density, stat_in_degree, or stat_out_degree instead.

Usage

stat_reciprocity(X)

Arguments

X

Square network matrix

Value

Scalar reciprocity value

Examples

X <- matrix(c(0, 1, 0, 1, 0, 1, 0, 0, 0), 3, 3)
stat_reciprocity(X)
#> [1] 0.5