nunofachada / pval_adjust

Adjust p-values for multiple comparisons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary

MATLAB/Octave function for adjusting p-values for multiple comparisons. Given a set of p-values, returns p-values adjusted using one of several methods. This is an implementation of the p.adjust R function, the documentation of which can be found at http://www.inside-r.org/r-doc/stats/p.adjust.

Usage

pc = pval_adjust([0.1 0.3 0.05 0.001 0.1 0.9 0.0004], 'bonferroni')

Correction methods

'holm', 'hochberg', 'hommel', 'bonferroni', 'BH', 'BY', 'fdr', 'sidak' or 'none'.

Reference

If you use this script in your research please cite the following paper:

  • Fachada N, Rosa AC. (2018) micompm: A MATLAB/Octave toolbox for multivariate independent comparison of observations. Journal of Open Source Software. 3(23):430. https://doi.org/10.21105/joss.00430

License

MIT License

About

Adjust p-values for multiple comparisons

License:MIT License


Languages

Language:MATLAB 86.7%Language:R 13.3%