paircomp: Hyperdirichlet distribution for repeated Bernoulli trials

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

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

Usage

1

Arguments

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

Details

The PDF is

\propto ∏_{i<j} \frac{ p_i^{M[j,i]} p_j^{M[i,j]} }{ ≤ft(p_i+p_j\right)^{M[i,j]+M[j,i]} }

Value

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

Note

Elements on the diagonal of x are silently ignored.

Author(s)

Robin K. S. Hankin

See Also

justpairs

Examples

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

hyperdirichlet documentation built on May 31, 2017, 5:18 a.m.