comcat {NetworkToolbox} | R Documentation |
Communicating Nodes
Description
Computes the between-community strength for each node in the network
Usage
comcat(
A,
comm = c("walktrap", "louvain"),
cent = c("strength", "degree"),
absolute = TRUE,
metric = c("across", "each"),
diagonal = 0,
...
)
Arguments
A |
An adjacency matrix of network data |
comm |
Can be a vector of community assignments or community detection algorithms
( |
cent |
Centrality measure to be used.
Defaults to |
absolute |
Should network use absolute weights?
Defaults to |
metric |
Whether the metric should be compute for across all of the communities
(a single value) or for each community (a value for each community).
Defaults to |
diagonal |
Sets the diagonal values of the |
... |
Additional arguments for |
Value
A vector containing the between-community strength value for each node
Author(s)
Alexander Christensen <alexpaulchristensen@gmail.com>
References
Blanken, T. F., Deserno, M. K., Dalege, J., Borsboom, D., Blanken, P., Kerkhof, G. A., & Cramer, A. O. (2018). The role of stabilizing and communicating symptoms given overlapping communities in psychopathology networks. Scientific Reports, 8, 5854.
Examples
# Pearson's correlation only for CRAN checks
A <- TMFG(neoOpen, normal = FALSE)$A
communicating <- comcat(A, comm = "walktrap", cent = "strength", metric = "across")