gtrans {sna} | R Documentation |
gtrans
returns the fraction of triads which are transitive, i.e., for which A^2=A. Triads involving missing values are omitted from the analysis.
gtrans(dat, g=NULL, diag=FALSE, mode="digraph")
dat |
A graph or graph stack |
g |
A vector indicating the graphs which are to be analyzed; by default, all graphs are analyzed |
diag |
A boolean indicating whether or not diagonal entries (loops) are to be taken as valid data |
mode |
``digraph'' if directed triads are sought, or else ``graph'' |
A vector of transitivity scores
Carter T. Butts ctb@andrew.cmu.edu
Holland, P.W., and Leinhardt, S. (1972). ``Some Evidence on the Transitivity of Positive Interpersonal Sentiment.'' American Journal of Sociology, 72, 1205-1209.
Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
#Draw some random graphs g<-rgraph(5,10) #Find transitivity scores gtrans(g)