draw8Dirichlet: simulates random draws from a Dirichlet

Description Usage Arguments Value Examples

Description

(dn) No more than a copy of rdirichlet found in mc2d package adapted for our parameterization. The A vector of values is the sum of usual A_i; The a vector of vectors (then a matrix) is the proportions associated to the usual A_i.

Usage

1
draw8Dirichlet(n, A, a)

Arguments

n

Number of draws to obtain.

A

Vector [n] of the confidences given to each Dirichlet.

a

Matrix [n,k] of the proportions for each one.

Value

a matrix [n,k] of the draws is returned

Examples

1
2
 set.seed(1234);draw8Dirichlet(5, 1:5, matrix(1:15, 5));
 set.seed(1234);draw8Dirichlet(5, rep(1, 5), matrix(1:15, 5));

rebastaba documentation built on May 2, 2019, 5:24 p.m.