|
|
| 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 (24) |
| 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
|
|
|
| Updates |
| 06 Jul 2004 |
Spelling corrections. Thanks to Phillip Feldman! |
| 10 Oct 2006 |
Minor bug fix, thanks to Sunnia Chai |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com