问题描述
我正在尝试使用加权边缘权重(即多色相关性)对我的论文进行社区检测分析。我正在使用 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 (将#修改为@)