Login
Back to bricks list
Introduction Version

PValue adjust

TASK
Typing name :  TASK.gws_stats.PValueAdujst Brick :  gws_stats

Test and adjust (correct) p-value for multiple tests

Test and adjust (correct) p-value for multiple tests

  • Input: a table containing lists of p-values.

  • Output: a table containing lists of corrected p-values.

  • Config Parameters:

    • alpha (float between 0 and 1): FWER, family-wise error rate, e.g. 0.1. Except for fdr_twostage, the p-value correction is independent of the alpha specified as argument

    • methods: Method used for testing and adjustment of pvalues. Can be either the full name or initial letters. Available methods are:

      • bonferroni: one-step correction
      • fdr_bh: Benjamini/Hochberg (non-negative)
      • fdr_by: Benjamini/Yekutieli (negative)
      • fdr_tsbh: two stage fdr correction (non-negative)
      • fdr_tsbky: two stage fdr correction (non-negative)
      • sidak: one-step correction
      • holm-sidak: step down method using Sidak adjustments
      • holm: step-down method using Bonferroni adjustments
      • simes-hochberg: step-up method (independent)
      • hommel: closed method based on Simes tests (non-negative)

For more details, see https://www.statsmodels.org/dev/generated/statsmodels.stats.multitest.multipletests.html

Input

Table
The input table of p-values

Output

Result
The output table containing adjected p-values

Configuration

pval_column_name

Optional

The name of the column containing p-values. If not given, the columns with values between 0 and 1 are supposed to contain p-values.

Type : string

method

Optional

The method used to adjust (correct) p-values

Type : stringAllowed values : bonferroni  fdr_bh  fdr_by  fdr_tsbh  fdr_tsbky  sidak  holm-sidak  holm  simes-hochberg  hommel  Default value : bonferroni

alpha

Optional

FWER, family-wise error rate

Type : floatDefault value : 0.05