spearman correlation in bootstrap function
5 views (last 30 days)
Show older comments
Hi Matlab experts,
How can I implement a spearman correlation in the bootstrp function:
bootstat = bootstrp(1000,@corr,a,b) ?
Thanks,
Tamir
0 Comments
Answers (1)
Jeff Miller
on 11 Mar 2019
scorr = @(a,b)(corr(a,b,'Spearman'));
bootstat = bootstrp(1000,scorr,a,b);
2 Comments
Jeff Miller
on 12 Mar 2019
Ooops, sorry, it should be
scorr = @(a,b)(corr(a,b,'type','Spearman'));
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!