Skip to content

nunofachada/pval_adjust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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