paircomp           package:hyperdirichlet           R Documentation

_H_y_p_e_r_d_i_r_i_c_h_l_e_t _d_i_s_t_r_i_b_u_t_i_o_n _f_o_r _r_e_p_e_a_t_e_d _B_e_r_n_o_u_l_l_i _t_r_i_a_l_s

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

     Hyperdirichlet distribution with nonzero coefficients for terms
     consisting of a pair of ps.

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

     paircomp(x)

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

       x: A square matrix.  If players i and j play, with i<j, then
          player j wins 'x[i,j]' trials and player i wins 'x[j,i]'
          trials

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

     The PDF is

 propto prod_{i<j} frac{ p_i^{M[j,i]} p_j^{M[i,j]} }{ (p_i+p_j)^{M[i,j]+M[j,i]} }

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

     Returns a hyperdirichlet object (without normalizing factor) of
     dimension 'nrow(x)'.

_N_o_t_e:

     Elements on the diagonal of 'x' are silently ignored.

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

     Robin K. S. Hankin

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

     'justpairs'

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

     paircomp(matrix(1:9,6,6))

