spearman correlation in bootstrap function
Mostrar comentarios más antiguos
Hi Matlab experts,
How can I implement a spearman correlation in the bootstrp function:
bootstat = bootstrp(1000,@corr,a,b) ?
Thanks,
Tamir
Respuestas (1)
Jeff Miller
el 11 de Mzo. de 2019
scorr = @(a,b)(corr(a,b,'Spearman'));
bootstat = bootstrp(1000,scorr,a,b);
2 comentarios
Tamir Eisenstein
el 12 de Mzo. de 2019
Jeff Miller
el 12 de Mzo. de 2019
Ooops, sorry, it should be
scorr = @(a,b)(corr(a,b,'type','Spearman'));
Categorías
Más información sobre Resampling Techniques en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!