Code covered by the BSD License  

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

» Watch video

Highlights from
studentvalue(a,n)

1.0
1.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 4.74 KB File ID: #22830 Version: 1.1

studentvalue(a,n)

by

Arnaud Laurent (view profile)

 

29 Jan 2009 (Updated )

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

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.4 (R2007a)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
12 Jul 2016 Anders Wallenborg

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.

Comment only
23 Oct 2015 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).

Comment only
15 Oct 2015 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!

Comment only
15 Oct 2015 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.

16 Feb 2012 Andy Daubenspeck

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.

Comment only
Updates
23 Oct 2015 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

Contact us