gtrans                  package:sna                  R Documentation

_C_o_m_p_u_t_e _t_h_e _T_r_a_n_s_i_t_i_v_i_t_y _o_f _a_n _I_n_p_u_t _G_r_a_p_h _o_r _G_r_a_p_h _S_t_a_c_k

_D_e_s_c_r_i_p_t_i_o_n:

     `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.

_U_s_a_g_e:

     gtrans(dat, g=NULL, diag=FALSE, mode="digraph")

_A_r_g_u_m_e_n_t_s:

     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'' 

_D_e_t_a_i_l_s:

_V_a_l_u_e:

     A vector of transitivity scores

_A_u_t_h_o_r(_s):

     Carter T. Butts ctb@andrew.cmu.edu

_R_e_f_e_r_e_n_c_e_s:

     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.

_S_e_e _A_l_s_o:

     `cugtest'

_E_x_a_m_p_l_e_s:

     #Draw some random graphs
     g<-rgraph(5,10)

     #Find transitivity scores
     gtrans(g)

