Does the Matlab Spearman correlation command rank original data?

2 visualizaciones (últimos 30 días)
VickyM
VickyM el 1 de Sept. de 2015
Respondida: Tim Jackman el 3 de Sept. de 2015
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');

Respuestas (1)

Tim Jackman
Tim Jackman el 3 de Sept. de 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.

Categorías

Más información sobre Smoothing en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by