adjustments of p-values for multiple comparisons
npm install multtest> adjustments of p-values for multiple comparisons
```
npm install multtest
Require as follows:
``
var multtest = require('multtest');
multtest exports the following functions:
Given an input array of pvalues, pvalues, this function calculates the Bonferroni correction by multiplying each p-value by m, the number of tested hypotheses. This is by default equal to the length of the pvalues array, but can be optionally supplied via the numHypotheses parameter.
Given an input array of pvalues, pvalues, the .fdr function calculates the false-discovery-rate adjusted p-values.
Given an input array of pvalues, pvalues, the .bY function calculates adjusted p-values according to the method by Benjamini & Yekutieli.
is an array of p-values, alpha is the significance level we wish to control the FDR at. The function returns an adjusted signficance level alpha_fdr
which has to be used as the nominal significance level when constructing confidence intervals.
It is calculated via the formulaalpha_fdr = ( (k + 1) / m ) * alpha,where
m is the total number of hypotheses and k` is the number of rejected hypotheses.MIT © Philipp Burckhardt
[npm-url]: https://npmjs.org/package/multtest
[npm-image]: https://badge.fury.io/js/multtest.svg
[travis-url]: https://travis-ci.org/Planeshifter/multtest
[travis-image]: https://travis-ci.org/Planeshifter/multtest.svg?branch=master
[daviddm-url]: https://david-dm.org/Planeshifter/multtest.svg?theme=shields.io
[daviddm-image]: https://david-dm.org/Planeshifter/multtest