dirconn.adjust_pvalues#

dirconn.adjust_pvalues(pvalues: ndarray, method: str = 'fdr_bh', *, antisymmetric: bool = False) → ndarray#

Adjust p-values so that adjusted <= alpha is the corrected decision.

Parameters:
  • pvalues (ndarray) – Any shape; NaN marks undefined cells and is kept.

  • method ({"fdr_bh", "bonferroni", "none"}) – "fdr_bh" is the Benjamini-Hochberg step-up procedure (valid for independent or positively dependent tests), "bonferroni" multiplies by the family size, "none" returns the raw values and must be chosen explicitly.

  • antisymmetric (bool) – The p-values of an antisymmetric measure, where cell (j, i) repeats the test of cell (i, j): the family is the defined cells with i < j on the first two axes, and the adjusted values are mirrored to (j, i).

Returns:

Same shape, values in [0, 1].

Return type:

ndarray