我试图使用statnet计算图中特定节点的中心度指标(我不能只使用igraph,因为它没有我想要的特定指标)。
如何使用这些函数的节点参数来指定这一点?例如,以prestige为例
# use the faux.magnolia.high dataset from ergm (1461 vertices and 974 edges)
library("ergm")
data(“faux.magnolia.high”)
# Try calculating for node 1
sna::prestige(faux.magnolia.high, nodes = 1, gmode = "graph")1
# Try calculating for node 2
sna::prestige(faux.magnolia.high, nodes = 2, gmode = "graph")不可用
发布于 2016-01-06 01:52:20
看起来这是与学位相关的prestige版本中的一个bug。这是可行的,但计算将在整个图上进行:
sna::prestige(faux.magnolia.high, gmode = "graph")[2] 请参阅Skye对statnet邮件列表的完整响应:help/2016/002175.html
https://stackoverflow.com/questions/34620876
复制相似问题