multComb:
Combinations of the first n integers in k groups
Description
This is a function, used for generating the permutations used for the Exact distribution of many of the statistical procedures in Hollander, Wolfe, Chicken - Nonparametric Statistical Methods Third Edition, to generate possible combinations of the first n=n1+n2+...+nk integers within k groups.
Usage
multComb(n.vec)
Arguments
n.vec
Contains the group sizes n1,n2,...,nk
Value
Returns a matrix of n!/(n1!*n2!*...*nk!) rows, where each row represents one possible combination.
Details
The computations involved get very time consuming very quickly, so be careful not to use it for too many large groups.