Description Usage Arguments Details
Given a matrix of category probabilities, return a matrix of outcomes sampled from multinomial distribution with those category probabilities
1 | rMultinom(probs, m = 1L)
|
probs |
N \times K matrix of probability of observation n falling into category k$ |
m |
How many outcomes should be sampled per row? Defaults to 1. |
Note: doesn't perform any validation or checking
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.