You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
toPermutationTestDistanceBased
callback. If true, p-values are computed using(b+1)/(m+1)
formula which avoids zero value , otherwise p-values are computed using current formulab/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
The text was updated successfully, but these errors were encountered: