Bridge: Title Calculate Bridge Coefficients

View source: R/Bridge.R

BridgeR Documentation

Title Calculate Bridge Coefficients

Description

Title Calculate Bridge Coefficients

Usage

Bridge(
  net_G,
  communities = NULL,
  useCommunities = "all",
  include = "basic",
  normalize = T,
  ...
)

Arguments

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 networktools::bridge.

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 networktools::bridge

Value

a list contains the bridge coefficient information:

  • bridgePlot: the plot of bridge coefficients of each node.

  • centrailty_data: the result of networktools::bridge.

Examples

data('mtcars')
Bridge <- Bridge(quickNet(mtcars), communities = list(c1 = 1:5, c2 = 6:11))


LeiGuo0812/quickNet documentation built on May 1, 2024, 10:42 p.m.