uniform {hyperdirichlet}R Documentation

A uniform Dirichlet distribution

Description

A uniform Dirichlet distribution

Usage

uniform(n, pnames=NULL)

Arguments

n The dimension of the distribution
pnames A character vector giving the names of the columns

Author(s)

Robin K. S. Hankin

See Also

dirichlet

Examples


uniform(4)

uniform(4) + dirichlet(1:4)   # identical (but the normalizing constant is lost)

# Two ways to do the same thing:
rhyperdirichlet(uniform(4),n=11)            
t(replicate(11,diff(c(0,sort(runif(3)),1))))



[Package hyperdirichlet version 1.1-7 Index]