Bootstraps the sample with replace to compute walktrap reliability
commboot(data, normal = FALSE, n = nrow(data), iter = 1000,
filter = c("TMFG", "threshold", "EBICglasso", "IsingFit"),
method = c("louvain", "walktrap"), na.data = c("pairwise", "listwise",
"fiml", "none"), steps = 4, cores, ...)
A set of data
Should data be transformed to a normal distribution? Defaults to FALSE. Data is not transformed to be normal. Set to TRUE if data should be transformed to be normal
Number of people to use in the bootstrap. Defaults to full sample size
Number of bootstrap iterations. Defaults to 100 iterations
Set filter method.
Defaults to "TMFG".
See EBICglasso and IsingFit
for additional arguments
Defaults to "walktrap". Set to "louvain" for the louvain community detection algorithm
Number of steps to use in the walktrap algorithm. Defaults to 4. Use a larger number of steps for smaller networks
Number of computer processing cores to use for bootstrapping samples. Defaults to n - 1 total number of cores. Set to any number between 1 and maxmimum amount of cores on your computer
Additional arguments for network filtering methods
Returns the number of factors and their relative frequency found across bootstrapped samples
Blondel, V. D., Guillaume, J. L., Lambiotte, R., & Lefebvre, E. (2008). Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Theory and Experiment, 2008(10), P10008.
Csardi, G., & Nepusz, T. (2006). The igraph software package for complex network research. InterJournal, Complex Systems, 1695(5), 1-9.
# NOT RUN {
commTMFG<-commboot(neoOpen)
commThreshold<-commboot(neoOpen,filter="threshold")
# }
Run the code above in your browser using DataLab