Description Usage Arguments Value See Also Examples
View source: R/draw.dirichlet.multinomial.R
This function implements pseudo-random number generation for a Dirichlet-multinomial distribution. This is a mixture distribution that is multinomial with parameter θ that is a realization of a random variable having a Dirichlet distribution with shape vector α. N is the sample size and β is a common scale parameter.
1 | draw.dirichlet.multinomial(no.row,d,alpha,beta,N)
|
no.row |
Number of rows to generate. |
d |
Number of variables to generate. |
alpha |
Vector of shape parameters. |
beta |
Scale parameter common to d variables. |
N |
Sample size. |
A no.row \times d matrix of generated data.
draw.dirichlet
, draw.multinomial
1 2 3 |
[1] -0.00222 -0.00369 0.00453 0.00138
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.