recip_coef | R Documentation |
This measure calculated the reciprocity of an asymmetric matrix (directed graph).
recip_coef(
A,
diag = NULL,
method = c("total_ratio", "ratio_nonnull", "global")
)
A |
A matrix |
diag |
Whether to consider the diagonal of the matrix |
method |
Whether to use |
Return a reciprocity coefficient
Alejandro Espinosa-Rada A <- matrix(c(0,1,1,0, 1,0,1,0, 0,0,0,0, 1,0,0,0), byrow = TRUE, ncol = 4) recip_coef(A)
Wasserman, S. and Faust, K. (1994). Social network analysis: Methods and applications. Cambridge University Press.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.