Learn R Programming

NetworkToolbox (version 1.2.2)

comcat: 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"), metric = c("across", "each"), ...)

Arguments

A

An adjacency matrix of network data

comm

Can be a vector of community assignments or community detection algorithms ("walktrap" or "louvain") can be used to determine the number of factors. Defaults to "walktrap". Set to "louvain" for louvain community detection

cent

Centrality measure to be used. Defaults to "strength".

metric

Whether the metric should be compute for across the communities (a single value) or for each community (a value for each community). Defaults to "across". Set to "each" for values for each community

...

Additional arguments for community detection algorithms

Value

A vector containing the between-community strength value for each node

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. doi: 10.1038/s41598-018-24224-2

Examples

Run this code
# NOT RUN {
A <- TMFG(neoOpen)$A

communicating <- comcat(A, comm = "walktrap", cent = "strength", metric = "across")

# }

Run the code above in your browser using DataLab