View source: R/calculate-sna-pars.R
This function uses a list of the Simple Ratio Association Index (or any other index) for all included time periods. It then calculates modularity and the ratio of individuals/estimated groups scaled from 0 to 1 (ratio_clusters_inds_scaled) from the observed data and for matrices of permuted social networks. It use two algorithms from the 'igraph' package: cluster_infomap and cluster_fast_greedy. Publications that discuss different ways of assessing modularity: Scott Emmons et al, 2016, Plos One (infomap, Blondel, label propagation, smart local moving)
1 2 3 4 5 | get_cluster_info_from_timeperiod_list(
simple_ratio_list,
perm.by.layer = NULL,
cluster_methods = NULL
)
|
simple_ratio_list |
List created with 'get_simple_ratios()“ |
perm.by.layer |
In case not all layers (matrices) of permuted data should be included. This is the 'by' argument of the 'seq()' function. |
cluster_methods |
one or more of the 'igraph::cluster_' function (see '?igraph::communities' for available functions). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.