Avoid p-values to be zero
Closed this issue · 0 comments
jaime-cespedes-sisniega commented
Describe the workflow you want to enable
Avoid p-values to be zero be adding an additional argument to PermutationTestDistanceBased
callback.
Describe your proposed solution
Add a boolean argument named conservative
to PermutationTestDistanceBased
callback. If true, p-values are computed using (b+1)/(m+1)
formula which avoids zero value , otherwise p-values are computed using current formula b/m
that can produce zero values.
Describe alternatives you've considered, if relevant
Another more advanced option would be to use equation (2) from Permutation P-values Should Never Be Zero:
Calculating Exact P-values When Permutations Are Randomly Drawn.
Additional context
No response