spearman correlation in bootstrap function
Ältere Kommentare anzeigen
Hi Matlab experts,
How can I implement a spearman correlation in the bootstrp function:
bootstat = bootstrp(1000,@corr,a,b) ?
Thanks,
Tamir
Antworten (1)
Jeff Miller
am 11 Mär. 2019
scorr = @(a,b)(corr(a,b,'Spearman'));
bootstat = bootstrp(1000,scorr,a,b);
2 Kommentare
Tamir Eisenstein
am 12 Mär. 2019
Jeff Miller
am 12 Mär. 2019
Ooops, sorry, it should be
scorr = @(a,b)(corr(a,b,'type','Spearman'));
Kategorien
Mehr zu Resampling Techniques finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!