Description Usage Arguments Value Examples
(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
.
1 | draw8Dirichlet(n, A, a)
|
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. |
a matrix [n,k] of the draws is returned
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));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.