Generate multinomial samples from a probability matrix
Generate multinomial samples
rmult(p)
p |
matrix of probabilities, with number of columns the number of classes |
Simple function that calls the rmultinom
function. It generates a class label
for each row of its input matrix of class probabilities.
a vector of class memberships
Trevor Hastie
Maintainer: Trevor Hastie hastie@stanford.edu
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.