使用群集旋转玻璃在 R 中进行社区检测的 0 到 1 之外的模块化值

问题描述

我正在尝试使用加权边缘权重(即多色相关性)对我的论文进行社区检测分析。我正在使用 Spinglass 聚类分析来检测社区。出于某种原因,我的模块性 (Q) 值不在预期的 0 到 1 范围内(基于我阅读的相关文献)。有人可以告诉我为什么会发生这种情况以及我如何纠正它?非常感谢!

#TESTING FOR COMMUNITIES
#create matrix table 
TeachAggDatagraph <- getWmat(TeachAggDataplot)
#convert matrix table to  qgraph graph
qgTeachA <- qgraph(TeachAggDatagraph)
#convert to igraph
graphTAD<- as.igraph(qgTeachA,attributes = TRUE) 
#Community detection for teacher aggression data
cluster_spinglass(graphTAD)

我收到的输出:

IGRAPH clustering spinglass,groups: 2,mod: -7.5
        + groups:

        $"1"
       [1] 1 2 3
      
       $"2"
        [1] 4 5 6

如您所见,我的模块化值等于 -7.5

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...