Generate a partial correlation AND p-values from a bootstrap?

3 views (last 30 days)
Hello,
So I would like to bootstrap my partial correlation analysis but also filter for statistical significance. Is there a way to do this within the bootstrp function?
Previously I filtered this way:
[t pval]=partialcorr(ecosys_d(:,5:8))
pval=pval<.1
t=pval.*t;
But now my bootstrap code is this:
[bootstat,bootsam] = bootstrp(1000,@partialcorr,ecosys_d(:,5:8));
Can I filter for statistical significance within the @bootfun call? Any other ideas? Thank you!

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!