gtrans
returns the transitivity of the elements of dat
selected by g
, using the definition of measure
. Triads involving missing values are omitted from the analysis.gtrans(dat, g=NULL, diag=FALSE, mode="digraph", measure = c("weak",
"strong", "weakcensus", "strongcensus"))
"digraph"
if directed triads are sought, or else "graph"
"weak"
(default), "strong"
, "weakcensus"
, or "strongcensus"
measure=="weak"
, the fraction of potentially intransitive triads obeying the weak condition is returned. With the measure=="weakcensus"
setting, by contrast, the total number of transitive triads is computed. The strong
versions of the measures are similar to the above, save in that the set of all triads is considered (since all are ``at risk'' for intransitivity).Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
triad.classify
, cugtest
#Draw some random graphs
g<-rgraph(5,10)
#Find transitivity scores
gtrans(g)
Run the code above in your browser using DataLab