Spearman Rank Correlation
Versione 1.0.0.0 (1 KB) da
Alexandros Leontitsis
It calculates the Spearman rank correlation coefficient.
15,1K download
Aggiornato
10 ott 2006
Nessuna licenza
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
Cita come
Alexandros Leontitsis (2026). Spearman Rank Correlation (https://it.mathworks.com/matlabcentral/fileexchange/4374-spearman-rank-correlation), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R14
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 | Minor bug fix, thanks to Sunnia Chai |
