5.0

5.0 | 2 ratings Rate this file 237 downloads (last 30 days) File Size: 3.43 KB File ID: #12699

Testt

by Giuseppe Cardillo

 

19 Oct 2006 (Updated 24 Aug 2009)

Code covered by BSD License  

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

Download Now | 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.
Testt requires powerStudent by Trujillo-Ortiz, A. and R. Hernandez-Walls.
URL http://www.mathworks.com/matlabcentral/fileexchange/2907
The Statistical Toolbox is required because Testt calls TINV and TCDF and FCDF functions.
According to john Chandler request, now all statistics are passed to STATS structure, if nargout is declared (STATS=testt(...))

Required Products Statistics Toolbox
MATLAB release MATLAB 7.1.0 (R14SP3)
Other requirements Download the file PowerStudent by Antonio Trujillo-Ortiz http://www.mathworks.com/matlabcentral/fileexchange/2907
Zip File Content  
Other Files license.txt,
testt.m
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 B. Creutzfeldt

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

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com