community.compare {EGAnet} | R Documentation |
Compares Community Detection Solutions Using Permutation
Description
A permutation implementation to determine statistical significance of whether the community comparison measure is different from zero
Usage
community.compare(
base,
comparison,
method = c("vi", "nmi", "split.join", "rand", "adjusted.rand"),
iter = 1000,
shuffle.base = TRUE,
verbose = TRUE,
seed = NULL
)
Arguments
base |
Character or numeric vector. A vector of characters or numbers that are treated as the baseline communities |
comparison |
Character or numeric vector (length = |
method |
Character (length = 1).
Comparison metrics from
|
iter |
Numeric (length = 1).
Number of permutations to perform.
Defaults to |
shuffle.base |
Boolean (length = 1).
Whether the |
verbose |
Boolean (length = 1).
Should progress be displayed?
Defaults to |
seed |
Numeric (length = 1).
Defaults to |
Value
Returns data frame containing method used (Method
), empirical or observed
value (Empirical
), and p-value based on the permutation test (p.value
)
Author(s)
Hudson Golino <hfg9s at virginia.edu> and Alexander P. Christensen <alexpaulchristensen@gmail.com>
References
Implementation of Permutation Test
Qannari, E. M., Courcoux, P., & Faye, P. (2014).
Significance test of the adjusted Rand index. Application to the free sorting task.
Food Quality and Preference, 32, 93–97.
Variation of Information
Meila, M. (2003, August).
Comparing clusterings by the variation of information.
In Learning Theory and Kernel Machines: 16th Annual Conference on Learning Theory and 7th Kernel Workshop,
COLT/Kernel 2003, Washington, DC, USA, August 24-27, 2003. Proceedings (pp. 173-187). Berlin, DE: Springer Berlin Heidelberg.
Normalized Mutual Information
Danon, L., Diaz-Guilera, A., Duch, J., & Arenas, A. (2005).
Comparing community structure identification.
Journal of Statistical Mechanics: Theory and Experiment, 2005(09), P09008.
Split-join Distance
Dongen, S. (2000).
Performance criteria for graph clustering and Markov cluster experiments.
CWI (Centre for Mathematics and Computer Science).
Rand Index
Rand, W. M. (1971).
Objective criteria for the evaluation of clustering methods.
Journal of the American Statistical Association, 66(336), 846-850.
Adjusted Rand Index
Hubert, L., & Arabie, P. (1985).
Comparing partitions.
Journal of Classification, 2, 193-218.
Steinley, D. (2004). Properties of the Hubert-Arabie adjusted rand index. Psychological Methods, 9(3), 386.
Examples
# Load data
wmt <- wmt2[,7:24]
# Estimate network
network <- EBICglasso.qgraph(data = wmt)
# Compute Edge Betweenness
edge_between <- community.detection(network, algorithm = "edge_betweenness")
# Compute Fast Greedy
fast_greedy <- community.detection(network, algorithm = "fast_greedy")
# Perform permutation test
community.compare(edge_between, fast_greedy)