Does the Matlab Spearman correlation command rank original data?
Mostra commenti meno recenti
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');
Risposte (1)
Tim Jackman
il 3 Set 2015
1 voto
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.
Categorie
Scopri di più su Probability Distributions and Hypothesis Tests in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!