Macmat                 package:Icens                 R Documentation

_A _f_u_n_c_t_i_o_n _t_o _c_o_m_p_u_t_e _t_h_e _i_n_c_i_d_e_n_c_e _m_a_t_r_i_x _f_o_r _a_n _i_n_t_e_r_s_c_t_i_o_n _g_r_a_p_h.

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

     Returns the Petrie matrix and Petrie pairs of an interval order
     given its list of maximal antichains. These can be obtained from
     'Maclist'.

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

     Macmat(ml)

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

      ml: A list containing the maximal cliques of the intersection
          graph of the data. 

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

     Not worth mentioning?

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

     A list containing two components.   

   pmat : The Petrie or clique matrix of the underlying interval order.

 ppairs : The Petrie pairs for each observation. These indicate the
          first and last maximal clique occupied by the observation.

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

     Alain Vandal and Robert Gentleman

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

     Computational Methods for Censored Data using Intersection Graphs,
     R. Gentleman and A. Vandal, JCGS, 2000.

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

     'Maclist'

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

        data(cosmesis)
        csub1 <- subset(cosmesis, subset=Trt==0, select=c(L,R))
        ml1 <- Maclist(csub1)
        mm1 <- Macmat(ml1)

