Code covered by the BSD License

### Highlights from Testt

5.0
5.0 | 2 ratings Rate this file 26 Downloads (last 30 days) File Size: 3.52 KB File ID: #12699 Version: 1.6

# Testt

### Giuseppe Cardillo (view profile)

19 Oct 2006 (Updated )

Calculate the Student t Test for unequal or equal samples size, unpaired or paired samples.

File Information
Description

This file is applicable for equal or unequal sample sizes; for paired or unpaired samples. When the test is unpaired, the Fisher-Snedecor F-test is performed to assess the equality of variance. If variances are not equal, Satterthwaite's approximate t test is performed.
The Statistical Toolbox is required because Testt calls TINV and TCDF and FCDF functions.
To compute power, Testt requires powerStudent by Trujillo-Ortiz, A. and R. Hernandez-Walls. If this function is not present on the computer, Sandler try to download it from FEX

You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097

Required Products Statistics and Machine Learning Toolbox
MATLAB release MATLAB 7.1.0 (R14SP3)
21 Aug 2009 Ben

### Ben (view profile)

Thanks

04 Aug 2009 john Chandler

### john Chandler (view profile)

can the p-value, etc be passed onto variables?

Comment only
15 Apr 2009 Giuseppe Cardillo

### Giuseppe Cardillo (view profile)

You have partially right. I have fixed the bug and uploaded the new file. Thank you very much!

Comment only
14 Apr 2009 Rune W Berg

### Rune W Berg (view profile)

There's a small bug in the procedure that prevents you chose 2-tailed test. Its in line 109.

As far as i can see you need to change it to:

109: if tail ~= 0 && tail ~= 1 && tail ~= 2 %check if tst is 0 or 1 or 2

Comment only

this m file is good,easy and useful.many thanks Giuseppe

Comment only
13 Jul 2008 Diego García Bascuñán

If you get the powerStudent, testt works. It's fantastic do it so easily!!!

06 Apr 2007 Giuseppe Cardillo

The file powerStudent is not included because is not a file of mine. As highlighted in the File Details this is a file of Antonio Trujillo Ortiz (file ID: 2907) that you can download.

Comment only
05 Apr 2007 ifan lin

This m file calls another function: powerStudent, which is not included.

Comment only
23 Oct 2006

Improvement of error handling

23 Oct 2006

fix in errors messages

23 Oct 2006

improvements

25 Oct 2006

fix bug

30 Oct 2006

Error handling improvements

09 Feb 2007

The file recall the PowerStudent routine (File ID: 2907) by Antonio Trujillo-Ortiz

28 Aug 2007

minor editing

12 Jun 2008

Added a TRY...CATCH loop for PowerStudent

12 Nov 2008 1.1

Change in Help section

05 Dec 2008 1.2

15 Apr 2009 1.3

Mistake correction in error handling routines

24 Aug 2009 1.4

STATS structure creation

23 Dec 2009 1.5

Changes in description

09 Mar 2010 1.6

To compute power, Testt requires powerStudent by Trujillo-Ortiz, A. and R. Hernandez-Walls. If this function is not present on the computer, Sandler try to download it from FEX