|
|
| File Information |
| Description |
It calculates the Spearman rank correlation coefficient from 2 or more data sets, and the associated t-test and p-values. The code is adapted with major changes from the Numerical Recipes book (http://www.nr.com/)
Example:
>> x = [1 2 3 3 3]';
>> y = [1 2 2 4 3; rand(1,5)]';
>> [r,t,p] = spear(x,y)
>> [r,t,p]=spear(x,y)
r =
0.8250 -0.6000
t =
2.5285 -1.2990
p =
0.0855 0.2848 |
| Required Products |
Statistics Toolbox
|
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (27) |
| 21 Jan 2004 |
wood ma
|
|
|
| 17 Feb 2004 |
Xiang Shi-Ming
|
|
|
| 03 Apr 2004 |
Brad Vines
|
|
|
| 12 Apr 2004 |
Jonathan D. Nelson
|
|
|
| 15 Aug 2004 |
M Matsuhashi
|
|
|
| 15 Sep 2004 |
Xiaoyang Tan
|
|
|
| 18 Sep 2004 |
Dan S.
|
|
|
| 19 Sep 2004 |
S Nishimoto
|
|
|
| 08 Oct 2004 |
someguy someguy
|
|
|
| 08 Oct 2004 |
someguy someguy
|
|
|
| 17 Jan 2005 |
buffalo fbi
|
|
|
| 07 Jun 2005 |
Linda S.
|
|
|
| 23 Sep 2005 |
Peter Li
|
|
|
| 08 Mar 2006 |
Benjamin Levy
|
|
|
| 11 Apr 2006 |
Joost de Winter
|
|
|
| 13 Sep 2006 |
Kyaw Tun
|
|
|
| 10 Oct 2006 |
Sunnia Chai
|
|
|
| 03 Jan 2007 |
Sergio Vallina
|
|
|
| 16 Feb 2007 |
Stephen Cowen
|
|
|
| 21 Feb 2007 |
Priscilla Mabhande
|
|
|
| 16 Aug 2007 |
Robert Schleicher
|
|
|
| 04 Oct 2007 |
Lana cfai
|
|
|
| 13 Mar 2008 |
Elisabeth Larsson
|
|
|
| 27 May 2008 |
Josue Alvarez
|
|
|
| 11 Dec 2009 |
Ethan Meyers
|
|
|
| 18 Feb 2010 |
Richard Crozier
|
|
|
| 31 Jan 2012 |
Daniel
|
|
|
| Updates |
| 06 Jul 2004 |
Spelling corrections. Thanks to Phillip Feldman! |
| 10 Oct 2006 |
Minor bug fix, thanks to Sunnia Chai |
|
Contact us at files@mathworks.com