r - Using the nodes argument for centrality metrics in sna -


i trying calculate centrality metrics specific node within graph using statnet (i can't use igraph since doesn't have metrics i'd like).

how use nodes argument of these functions specify this? example, take prestige

# use faux.magnolia.high dataset ergm (1461 vertices , 974 edges) library("ergm") data(“faux.magnolia.high”)  # try calculating node 1 sna::prestige(faux.magnolia.high, nodes = 1, gmode = "graph") 

1

# try calculating node 2 sna::prestige(faux.magnolia.high, nodes = 2, gmode = "graph") 

na

looks bug in degree-related versions of prestige. work calculations done on whole graph:

sna::prestige(faux.magnolia.high, gmode = "graph")[2]  

see skye's full response on statnet mailing list: http://mailman13.u.washington.edu/pipermail/statnet_help/2016/002175.html


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

React Native allow user to reorder elements in a scrollview list -

multithreading - Exception in Application constructor -