Code covered by the BSD License  

Highlights from
Testt

5.0

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

Testt

by Giuseppe Cardillo

 

19 Oct 2006 (Updated 09 Mar 2010)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
05 Apr 2007 ifan lin

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

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.

13 Jul 2008 Diego García Bascuñán

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

02 Feb 2009 shiva keihaninejad

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

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

15 Apr 2009 Giuseppe Cardillo

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

04 Aug 2009 john Chandler

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

21 Aug 2009 Ben

Thanks

Please login to add a comment or rating.
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

24 Sep 2008

Improvement in input error handling

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

Tag Activity for this File
Tag Applied By Date/Time
statistics Giuseppe Cardillo 22 Oct 2008 08:44:27
probability Giuseppe Cardillo 22 Oct 2008 08:44:27
student t test Giuseppe Cardillo 22 Oct 2008 08:44:27
unpaired Giuseppe Cardillo 22 Oct 2008 08:44:27
paired Giuseppe Cardillo 22 Oct 2008 08:44:27
degrees of freedom Giuseppe Cardillo 22 Oct 2008 08:44:27
calculate Giuseppe Cardillo 22 Oct 2008 08:44:27
statistics Cristina McIntire 12 Nov 2008 13:55:31
probability Cristina McIntire 12 Nov 2008 13:55:35
satterthwaite Giuseppe Cardillo 05 Dec 2008 14:23:28

Contact us at files@mathworks.com