Does the Matlab Spearman correlation command rank original data?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Tim Jackman
2015년 9월 3일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Smoothing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!