Learn R Programming

hyperdirichlet (version 1.4-2)

justpairs: Hyperdirichlet distribution with nonzero coefficients for just the pairs

Description

Hyperdirichlet distribution with nonzero coefficients for terms consisting of a pair of $p$s.

Usage

justpairs(x)

Arguments

x
A square matrix. Upper triangular elements correspond to pairs of included $p$s, and lower triangular elements correspond to pairs of excluded $p$s

Value

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

Details

The PDF is

$$\prod_{i

See Also

paircomp

Examples

Run this code
justpairs(matrix(1:25,5,5))

Run the code above in your browser using DataLab