GenDirichlet: Generalized Dirichlet functions

Description Usage Arguments Value Author(s) See Also Examples

Description

Random deviates of the Generalized Dirichlet distribution.

Usage

1
rGenDirichlet(n, p, k)

Arguments

p

The Dirichlet normalized parameters. The Dirichlet parameters may contain zeros if the branch to which a parameter is referring is not allowed.

k

k * p = alpha (the Dirichlet parameters.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

Value

rGenDirichlet generates random deviates.

Author(s)

Rob Carnell

See Also

rdirichlet

Examples

1
  rGenDirichlet(10, c(4,3,2)/9, c(2, 2, 2))

dirichlet documentation built on May 2, 2019, 6:49 p.m.