Description Usage Arguments Value Examples
Simulate variables following a multinomial distribution.
1 | rmultinomial(n, size, prob)
|
n |
matrix with the probabilities used to generate the sample |
size |
number of trials en each observation |
prob |
probability of observations (vector) or specific to each observation (matrix) |
multinomial sample in a matrix
1 | rmultinomial(10, c(10, 100), c(0.2,0.8))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.