File Exchange

image thumbnail

studentvalue(a,n)

version 1.1 (4.74 KB) by

This function retrieve the student distribution value for a given alpha and degree of freedom value.

1 Download

Updated

View License

This function retrieve the student distribution value for a given alpha and degree of freedom value.
Inputs: a = can be any alpha value
           n = number of data points
Output: st = value of the student distribution
             alpha = the alpha value used
             perc = the corresponding percentage
Comment: a can be expressed in percent

Comments and Ratings (5)

Hi Arnaud,

Why are you using df = n-2 in this function? According to my textbook in statistics, it should be df = n-1. Perhaps it would be better to use df as an input argument instead of n, that is the way I have the t values tabulated in my old textbook.

Arnaud Laurent

Arnaud Laurent (view profile)

Thanks Carl and Andy, I've updated the file accordingly. Note, I removed the call to nanmin (part of the statistical toolbox).

Carl Witthoft

Aside from "nanmin" being missing and undefined, there is an error in the loaded table. The column marked "0.25" contains the t-values for "0.2" as can be verified by comparison with any published set of tables.
Note: there is a 'nanmin' published at 6837; hope that's the one invoked here!

Carl Witthoft

Aside from "nanmin" being missing and undefined, there is an error in the loaded table. The column marked "0.25" contains the t-values for "0.2" as can be verified by comparison with any published set of tables.

Hi Arnaud, I just downloaded your student-t table lookup program and cannot figure out where to get teh function "nanmin"--it is not in any of my libraries and does not present on a Matlab Central search. Thanks for any help.

Updates

1.1

23/10/2015 Corrected the alpha level (0.25 should have been 0.2) and added student values for alpha level 0.25

MATLAB Release
MATLAB 7.4 (R2007a)

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

» Watch video