Arguments
v2
A logical vector the same length as v1.
NPERM
A positive integer. The number of tests to be conducted.
stat
A statistical function passed into to test the
permutation on two vectors.
seed
A positive integer. To set the seed for the random number
generator.
n11
A postive integer. The value of (1,1) in the two way table.
n12
A postive integer. The value of (1,2) in the two way table.
n21
A postive integer. The value of (2,1) in the two way table.
n22
A postive integer. The value of (2,2) in the two way table.