ptest function

Permutation test for group differences at within-subject levels