paircomp {hyperdirichlet} | R Documentation |
Hyperdirichlet distribution with nonzero coefficients for terms consisting of a pair of ps.
paircomp(x)
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 |
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]} }
Returns a hyperdirichlet distribution (without normalizing factor) of
dimension nrow(x)
.
Elements on the diagonal of x
are silently ignored.
Robin K. S. Hankin
paircomp(matrix(1:9,6,6))