Code covered by the BSD License  

Highlights from
T-test with Bonferroni Correction

2.85714

2.9 | 7 ratings Rate this file 21 Downloads (last 30 days) File Size: 2.56 KB File ID: #4114

T-test with Bonferroni Correction

by Guy Shechter

 

01 Nov 2003 (Updated 03 Nov 2003)

Performs multiple pairwise comparisons between groups of samples.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
25 Jun 2004 jim beam  
23 Nov 2004 ada daria  
24 Mar 2005 James Rathman

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

17 May 2007 eleven zhao

Excellent

02 Aug 2007 peter winterfeldt  
09 Nov 2007 Leon Kiang

Very good and easy to use!!

02 Sep 2008 ram sen  
19 Jan 2010 Rob Campbell

bonferroni is awfully conservative. There are now better alternatives:
http://en.wikipedia.org/wiki/False_discovery_rate

14 Aug 2010 Alex

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

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Guy Shechter 22 Oct 2008 07:09:11
probability Guy Shechter 22 Oct 2008 07:09:11
ttest Guy Shechter 22 Oct 2008 07:09:11
stat Guy Shechter 22 Oct 2008 07:09:11
bonferroni Guy Shechter 22 Oct 2008 07:09:11
multiple comparisons Guy Shechter 22 Oct 2008 07:09:11

Contact us at files@mathworks.com