spearman correlation in bootstrap function
显示 更早的评论
Hi Matlab experts,
How can I implement a spearman correlation in the bootstrp function:
bootstat = bootstrp(1000,@corr,a,b) ?
Thanks,
Tamir
回答(1 个)
Jeff Miller
2019-3-11
scorr = @(a,b)(corr(a,b,'Spearman'));
bootstat = bootstrp(1000,scorr,a,b);
2 个评论
Tamir Eisenstein
2019-3-12
Jeff Miller
2019-3-12
Ooops, sorry, it should be
scorr = @(a,b)(corr(a,b,'type','Spearman'));
类别
在 帮助中心 和 File Exchange 中查找有关 Resampling Techniques 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!