Skip to content

Avoid p-values to be zero #251

@jaime-cespedes-sisniega

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions