This function can be used to perform multiple comparisons between groups of sample data.
The Bonferroni correction is used to keep the total chance of erroneously reporting a difference below some ALPHA value.
For example, consider an experiment with four patients. Their temperature is measured at 8AM, Noon, and 5 PM. This function can be used to test if there is a difference in temperature between 8AM and Noon, between Noon and 5PM, and between 8AM and 5PM.
Works as advertised. Would help if it could handle NaNs in the input columns.
bonferroni is awfully conservative. There are now better alternatives:
Very good and easy to use!!
Requires Statistics toolbox, so this isn't a standalone.