Description Usage Arguments Value Author(s) See Also Examples
Generate random multinomial data in which all value no more than 1.
1 | rmulti.one(size, p)
|
size |
Integer, the number of random samples from the multinomial distribution. |
p |
Numeric vector, probability vector for all categories (the sum of p should be 1). |
Random (0,1) vector
Taichi Wang <taichi43@stat.sinica.edu.tw>
1 | rmulti.one(size=5, p=rep(1/10,10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.