How do I test Kendall Rank Correlation Coefficient in a matrix?

조회 수: 5 (최근 30일)
Lakyn
Lakyn 2016년 8월 22일
답변: Natch Ruengsakulrach 2016년 8월 31일
Hi all!
So I have a matrix that is 76x4000 (76 rows, 4000 columns). I would like to test the Kendall Rank correlation coefficient between each row to every other row, including itself, so the end matrix will be 76x76. How do I write it as a function?
Thank you very much!

답변 (1개)

Natch Ruengsakulrach
Natch Ruengsakulrach 2016년 8월 31일
If you would like to perform a pairwise correlation coefficient between each pair of rows, you can transpose your matrix "A" and use the "corr" function
r = corr(A','type','Kendall');
More information can be found here: http://www.mathworks.com/help/stats/corr.html

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by