% 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.
% INPUTS:
% dA, dB -> Dependent variable (column vectors)
% cA, cB -> Associated covariate (column vectors)
% OPTIONAL: k -> Number of cycles (1000 by default)
% OPTIONAL: do_fig -> Want the figure? 1=yes, 0=no=default
%
% OUTPUTS
% es -> effect size
% IF YOU USE THIS SCRIPT YOU MAY WANT TO LOOK AT / CITE:
% Di Plinio, S (2022). Testing the magnitude of correlations across experimental conditions. Frontiers in Psychology, 13:860213. https://doi.org/10.3389/fpsyg.2022.860213
引用格式
Di Plinio, S (2022). Testing the magnitude of correlations across experimental conditions. Frontiers in Psychology, 13:860213. https://doi.org/10.3389/fpsyg.2022.860213
MATLAB 版本兼容性
创建方式
R2018a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Multimodal 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!