% The function compares the magnitude of correlations between a covariate "c" and
% the dependent variable "d" across the experimental conditions A and B.
% The difference between the two bootstrapped ("k" cycles) z-distributions of correlations in
% the conditions A and B is estimated as the effect size (Cohen's d).
% Input data should be the dependent variable (e.g., brain activity in a certain
% region, for each subject) and the associated covariate (e.g., reaction times
% during the experiment, for each subject).
% Suggestion: implement different k to ensure a costant value of es.
% IF YOU USE THIS SCRIPT YOU MAY WANT TO LOOK AT / CITE:
% Di Plinio, S., Testing the magnitude of correlations across experimental conditions: A comparison of five methods (under review)
Simone Di Plinio (2021). bootes - compare correlations (https://www.mathworks.com/matlabcentral/fileexchange/68238-bootes-compare-correlations), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!