Suppose that I have two groups of data of size $50$ and $51$. Assuming that I did an approximate Monte Carlo permutation test with 10,000 permutations randomly drawn, is there a way to find a confidence interval for the estimate of the $p$-value?
Suppose my estimate of the $p$-value is $0.0003$. What would I need to construct such a confidence interval?
binofit(3,10000)
I get $(0.00006, 0.0009)$, this is I believe based on the Clopper-Pearson method. $\endgroup$