Does the Matlab Spearman correlation command rank original data?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Does the following Matlab command rank original data, or does the data need to be ranked manually before using the command?
[rho,pval] = corr(x,y,'type','spearman');
0 Kommentare
Antworten (1)
Tim Jackman
am 3 Sep. 2015
The corr command will rank the original data, so you should not need to rank the data before using the command. Also, corr computes p-values for Spearman's rho using either the exact permutation distributions (for small sample sizes), or large-sample approximations.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!