permute_discrete: Generate a permutation for two discrete data groups
Description
This function permutes the observations maintaining the two sample sizes unchaged.
Usage
permute_discrete(vmat)
Arguments
vmat
A K by 2 matrix, where K is the number of distinct values with at least one observation in either group. It specifies the counts in the K distinct values for the two samples.