powered by
Performs a random partition of objects into classes.
rand.member(n.obs, G)
A binary and row-stochastic matrix with \(n.obs\) rows and \(G\) columns.
Number of objects
Number of classes
No empty classes can occur.
rand.member(10, 3)
Run the code above in your browser using DataLab