Generate random samples from multinomial distributions with the same number of classes but different event probabilities.
matrix with each row specifying the probabilities for different classes of each sample.
This function vectorizes the generation of random samples from different multinomial distributions by the inversion of CDF method.
Random samples from multinomial distributions.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.