diri_norm: Normalization constants for the Dirichlet and generalized...

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

Description

Normalization constants for the Dirichlet and generalized Dirichlet distributions using computationally efficient methods

Usage

1
2

Arguments

x

Vector of parameters in the Dirichlet distribution

a,b

Vectors of parameters in the generalized Dirichlet distribution

Value

Returns the normalization constant:

omitted: see a LaTeXed file

for the Dirichlet and

omitted: see a LaTeXed file

for the generalized Dirichlet.

Note

The functions make use of the logarithmic form of the gamma and beta functions to avoid overflow

Author(s)

Robin K. S. Hankin

References

R. J. Connor and J. E. Mosimann 1969. “Concepts of independence for proportions with a generalization of the Dirichlet distribution”. Journal of the American Statistical Association, volume 64, number 325, pp194-206

See Also

dhyperdirichlet

Examples

1
2
diri_norm(runif(9))
gd_norm(1:3 , 3:1)

Example output

Loading required package: aylmer
Loading required package: Brobdingnag

Attaching package: 'Brobdingnag'

The following objects are masked from 'package:base':

    max, min, prod, range, sum

Loading required package: abind
[1] 21.96838
[1] 0.01851852

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