spearman correlation in bootstrap function
4 ビュー (過去 30 日間)
古いコメントを表示
Hi Matlab experts,
How can I implement a spearman correlation in the bootstrp function:
bootstat = bootstrp(1000,@corr,a,b) ?
Thanks,
Tamir
0 件のコメント
回答 (1 件)
Jeff Miller
2019 年 3 月 11 日
scorr = @(a,b)(corr(a,b,'Spearman'));
bootstat = bootstrp(1000,scorr,a,b);
2 件のコメント
Jeff Miller
2019 年 3 月 12 日
Ooops, sorry, it should be
scorr = @(a,b)(corr(a,b,'type','Spearman'));
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!