trans_coef | R Documentation |
This measure is sometimes called clustering coefficient.
trans_coef(
A,
method = c("weakcensus", "global", "mean", "local"),
select = c("all", "in", "out")
)
A |
A matrix |
method |
Whether to calculate the |
select |
Whether to consider |
Return a transitivity measure
Alejandro Espinosa-Rada
Wasserman, S. and Faust, K. (1994). Social network analysis: Methods and applications. Cambridge University Press.
A <- matrix(c(
0, 1, 0, 1, 0,
1, 0, 1, 1, 0,
0, 1, 0, 0, 0,
1, 1, 0, 0, 1,
0, 0, 0, 1, 0
), byrow = TRUE, ncol = 5)
rownames(A) <- letters[1:ncol(A)]
colnames(A) <- rownames(A)
trans_coef(A, method = "local")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.