Bridge | R Documentation |
Title Calculate Bridge Coefficients
Bridge(
net_G,
communities = NULL,
useCommunities = "all",
include = "basic",
normalize = T,
...
)
net_G |
a qgraph object, could also be the result of quickNet. |
communities |
an object of class "communities" (igraph) OR a character vector of community assignments for each node (e.g., c("Comm1", "Comm1", "Comm2", "Comm2)). The ordering of this vector should correspond to the vector from argument "nodes". Can also be in list format (e.g., list("Comm1"=c(1:10), "Comm2"=c(11:20))). |
useCommunities |
character vector specifying which communities should be included. Default set to "all". |
include |
the statistics calculated. Default "basic" calculates Bridge strength, Bridge betweenness and Bridge closeness. if "all" or "All", the Bridge expected influence (1-step) and Bridge expected influence (2-step) will also be calculated. You can also specify the statistics you want. See |
normalize |
logical. Bridge centralities are divided by their highest possible value (assuming max edge strength=1) in order to normalize by different community sizes. |
... |
other parameters from |
a list contains the bridge coefficient information:
bridgePlot:
the plot of bridge coefficients of each node.
centrailty_data:
the result of networktools::bridge
.
data('mtcars')
Bridge <- Bridge(quickNet(mtcars), communities = list(c1 = 1:5, c2 = 6:11))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.