Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/clustcoef_signed_mult.R
Calculate the signed clustering coeffecient (local transitivity) for a list of graphs using either the Zhang & Horvath method or the Constantini & Perugini method.
1 | clustcoef_signed_mult(graphs, method = "Constantini")
|
graphs |
A list of igraph objects or matrices. |
method |
Either "Constantini" (the default) or "Zhang" |
Calculate the signed clustering coeffecient (local transitivity) for a single graph using either the Zhang & Horvath (2005) method or the Constantini & Perugini (2014) method. The local transitivity (or clustering coeffecient) of a node is the fraction of edges a node forms with its neighbors out of the the number of edges it would take to make complete triangles. This code was adapted from the code in the qgraph package with modifications to make the output as in the matlab script clustering_coef_w_sign in the Brain Connectivity Toolbox. The Onella method is excluded due to similarities with the Barrat (available as the local_clustcoef function in this package) and Zhang methods.
A matrix of clustering scores for each node and each subject
Brandon Vaughan
Costantini, G., & Perugini, M. (2014). Generalization of Clustering Coefficients to Signed Correlation Networks. PLoS ONE, 9(2), e88669. http://doi.org/10.1371/journal.pone.0088669
Zhang, B., & Horvath, S. (2005). A general framework for weighted gene co-expression network analysis. Statistical Applications in Genetics and Molecular Biology, 4(1).
local_trans transitivity clustcoef_signed
1 2 3 | **##Not run**
clustcoef_signed_mult(graphs)
## End(**Not run**)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.