Closed peoplecure closed 3 years ago
Because this is a permutation p-value constructed by simulation when the 'true' one-sided p-value is very small you'll need a lot of runs to get a single element of reps
to be larger than S_xyab
. This should eventually happen if you make the function parameter b
large enough.
In the paper, the authors ran huge numbers of permutations. I have not made the default as generally I feel like the difference between say 0.0000001 and 0.00000001 in problems like these is of essentially no inferential relevance. We just learned that S_xyab
is very small under the null.
Thank you for the response. I needed the method to show the replicated results in my paper. I will try it over the weekend. : )
Hi,
While reproducing some of the results, I have come across some incongruity in the p-values.
In the paper, it was reported that WEAT1 has a p-value of 10^−7. However, the provided code was showing up as p = 0. So, I looked at the weat_perm and noticed that
p_val <- sum(reps > S_xyab)/length(reps)
So, I've added this code on the original
weat_perm
function:which returned
I take it
sum(reps > S_xyab)
most likely returns 0, thus the 0 p-value. But, how was the p-value obtained in the original study? Did you use a different method for the paper publication?Many thanks.