hierarchy
takes a graph stack (dat
) and returns reciprocity or Krackhardt hierarchy scores for the graphs selected by g
.hierarchy(dat, g=1:stackcount(dat), measure=c("reciprocity",
"krackhardt"))
"reciprocity"
or "krackhardt"
hierarchy
provides two measures (selected by the measure
argument) as follows:reciprocity
: This setting returns the dyadic reciprocity for each input graph (seegrecip
)krackhardt
: This setting returns the Krackhardt hierarchy score for each input graph. The Krackhardt hierarchy is defined as the fraction of non-null dyads in thereachability
graph which are asymmetric. Thus, when no directed paths are reciprocated (e.g., in an in/outtree), Krackhardt hierarchy is equal to 1; when all such paths are reciprocated, by contrast (e.g., in a cycle or clique), the measure falls to 0. Hierarchy is one of four measures (connectedness
,efficiency
,hierarchy
, andlubness
) suggested by Krackhardt for summarizing hierarchical structures. Each corresponds to one of four axioms which are necessary and sufficient for the structure in question to be an outtree; thus, the measures will be equal to 1 for a given graph iff that graph is an outtree. Deviations from unity can be interpreted in terms of failure to satisfy one or more of the outtree conditions, information which may be useful in classifying its structural properties.
Note that hierarchy is inherently density-constrained: as densities climb above 0.5, the proportion of mutual dyads must (by the pigeonhole principle) increase rapidly, thereby reducing possibilities for asymmetry. Thus, the interpretation of hierarchy scores should take density into account, particularly if density is artifactual (e.g., due to a particular dichotomization procedure).
Wasserman, S., and Faust, K. (1994). ``Social Network Analysis: Methods and Applications.'' Cambridge: Cambridge University Press.
connectedness
, efficiency
, hierarchy
, lubness
, grecip
, mutuality
, dyad.census
#Get hierarchy scores for graphs of varying densities
hierarchy(rgraph(10,5,tprob=c(0.1,0.25,0.5,0.75,0.9)),
measure="reciprocity")
hierarchy(rgraph(10,5,tprob=c(0.1,0.25,0.5,0.75,0.9)),
measure="krackhardt")
Run the code above in your browser using DataLab