File Exchange

## 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.

Updated

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

Anders Wallenborg

### Anders Wallenborg (view profile)

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

### Carl Witthoft (view profile)

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

### Carl Witthoft (view profile)

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.

Andy Daubenspeck

### Andy Daubenspeck (view profile)

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.