I am new to the permutation test and has found some online resources to learn how to conduct the permutation test. But I have yet to find a good explanation of how to find the power of a permutation test. Can someone explain this to me step-by-step or direct me to a good resource?
For example, suppose I want to apply the permutation test to the following hypothesis that can be checked using a normal distribution. Suppose there are two populations, from each population j=1,2 the following elements are drawn
(Xj1, Xj2, ..., XjN)
I want to test the Null hypothesis
mean(X1i) = mean(X2i)
against the alternative hypothesis that the two means are not equal.
For the power analysis, I want to find the power of the test if the true difference is K.
How would I actually do the power analysis in this case?