File Exchange

image thumbnail

Testt

version 1.6 (3.52 KB) by

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

9 Downloads

Updated

View License

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

Comments and Ratings (8)

Ben

Ben (view profile)

Thanks

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

Giuseppe Cardillo

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

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

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

Diego García Bascuñán

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

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.

ifan lin

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

Updates

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

1.5

Changes in description

1.4

STATS structure creation

1.3

Mistake correction in error handling routines

1.2

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

1.1

Change in Help section

Added a TRY...CATCH loop for PowerStudent

minor editing

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

Error handling improvements

fix bug

improvements

fix in errors messages

Improvement of error handling

MATLAB Release
MATLAB 7.1.0 (R14SP3)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video