brokerage(g, cl)
brokerage
, containing the following elements:
The brokerage score for a given vertex with respect to a given role is the number of ordered pairs having the appropriate group membership(s) brokered by said vertex. brokerage
computes the brokerage scores for each vertex, given an input graph and vector of class memberships. Aggregate scores are also computed at the graph level, which correspond to the total frequency of each role type within the network structure. Expectations and variances of the brokerage scores conditional on size and density are computed, along with approximate $z$-tests for incidence of brokerage. (Note that the accuracy of the normality assumption is not known in the general case; see Gould and Fernandez (1989) for details. Simulation-based tests may be desirable as an alternative.)
triad.census
, gtrans
#Draw a random network with 3 groups
g<-rgraph(15)
cl<-rep(1:3,5)
#Compute a brokerage object
b<-brokerage(g,cl)
summary(b)
Run the code above in your browser using DataLab