ntbrk
Brokerage roles
ntbrk(from, to, grp, nodes = NULL, dir = FALSE)Counts, for each node v, the two-paths i -> v -> j with i != j and
no tie i -> j (v brokers between them), by the roles of Gould and
Fernandez (1989), given each node’s group: coord (coordinator: i, v
and j in one group), itin (itinerant: i and j in one group, v in
another), repr (representative: v in i’s group, j outside), gate
(gatekeeper: v in j’s group, i outside) and liais (liaison: three
groups). Undirected, each tie runs both ways, so each unordered pair of
neighbours counts twice and repr equals gate.
Weights are not taken. Graph rules as in ntdeg(). Raw counts only:
the expected counts and z-scores of Gould and Fernandez are not given.
Parameters
Section titled “Parameters”from, toLabels of the two ends of each edge: vectors of the same length (zero when
nodesgives every node) with no missing values.grpThe group of each node: labels, named by node or one per node in node order, as
membinntmod().nodesNULL, or every node’s label once: the node order of the results and the way to include isolated nodes.dirTRUEfor a directed graph (fromsends a tie toto).
Returns
Section titled “Returns”A data frame: node, grp (as text), coord, itin, repr,
gate, liais and total.
References
Section titled “References”Gould, R. V. and Fernandez, R. M. (1989). Structures of mediation: a formal approach to brokerage in transaction networks. Sociological Methodology, 19, 89-126. doi:10.2307/270949
Examples
Section titled “Examples”ntbrk(c("a", "b", "b"), c("b", "c", "d"), grp = c(a = "x", b = "y", c = "y", d = "z"), dir = TRUE)Generated from the R help page: ntbrk in the R reference.