fdr#
- fdr(pvals, q=None, fdr_type='parametric')#
Compute Benjamini-Hochberg or Benjamini-Yekutieli FDR thresholds.
- Parameters:
pvals (Any) – Numeric p-value array with values in the closed interval [0, 1].
q (float | None) – Desired false discovery rate. If omitted, an EEGLAB-style array of corrected thresholds is returned.
fdr_type (str) –
"parametric"for Benjamini-Hochberg or"nonparametric"/"nonParametric"for Benjamini-Yekutieli.
- Returns:
Threshold and boolean mask with the same shape as
pvals.- Return type:
FDRResult