Spearman Rank Correlation

It calculates the Spearman rank correlation coefficient.
다운로드 수: 15.1K
업데이트 날짜: 2006/10/10

라이선스 없음

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

인용 양식

Alexandros Leontitsis (2025). Spearman Rank Correlation (https://kr.mathworks.com/matlabcentral/fileexchange/4374-spearman-rank-correlation), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Minor bug fix, thanks to Sunnia Chai