Code covered by the BSD License  

Highlights from
Testt

5.0

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

Testt

by

 

19 Oct 2006 (Updated )

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

| Watch this File

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
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

Required Products Statistics Toolbox
MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
21 Aug 2009 Ben

Thanks

04 Aug 2009 john Chandler

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

15 Apr 2009 Giuseppe Cardillo

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

14 Apr 2009 Rune W Berg

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

02 Feb 2009 shiva keihaninejad

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

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.

05 Apr 2007 ifan lin

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

Updates
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

Change in Help section

05 Dec 2008

Fisher-Snedecor F-test check added; Satterthwaite's approximation added; changes in output format

15 Apr 2009

Mistake correction in error handling routines

24 Aug 2009

STATS structure creation

23 Dec 2009

Changes in description

09 Mar 2010

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

Contact us