File Exchange

image thumbnail

T-test with Bonferroni Correction

version 1.0 (2.56 KB) by

Performs multiple pairwise comparisons between groups of samples.

7 Ratings



View License

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.

Comments and Ratings (9)


Alex (view profile)

Works as advertised. Would help if it could handle NaNs in the input columns.

Rob Campbell

Rob Campbell (view profile)

bonferroni is awfully conservative. There are now better alternatives:

ram sen

Leon Kiang

Very good and easy to use!!

peter winterfeldt

eleven zhao


James Rathman

Requires Statistics toolbox, so this isn't a standalone.

ada daria

jim beam

MATLAB Release
MATLAB 6.0 (R12)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today