Generate Random Samples from Different Multinomial Distributions with the Same Number of Classes
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
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.