justpairs: Hyperdirichlet distribution with nonzero coefficients for...

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. Upper triangular elements correspond to pairs of included ps, and lower triangular elements correspond to pairs of excluded ps

Details

The PDF is

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

Value

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

Note

The case where nrow(x)==4 is treated specially. In this case, the lower triangular elements are discarded, with a warning.

Author(s)

Robin K. S. Hankin

See Also

paircomp

Examples

1
justpairs(matrix(1:25,5,5))

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