[FieldTrip] Advice on the design matrix for the correlation between neuronal and behavioral data

Shen-Mou Hsu explena at gmail.com
Wed May 31 18:32:54 CEST 2023


Dear Users,

I am writing to request advice on how to set up the design matrix when
performing clustered-based permutation on the correlation between neuronal
and behavioral data. Suppose that the study has four experimental
conditions (e.g., 4 different days) and I have behavioral accuracy data
(e.g., sub1: [0.5,0.6,0.2,0.3 %] ......) and corresponding ERPs (e.g.,
sub1: [2,6,4,3 uV].......) from 10 subjects. I want to examine whether
there is a significant correlation between accuracy and power collapsed
across the four conditions.

Because in the faq (
https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/faq/how_can_i_test_for_correlations_between_neuronal_data_and_quantitative_stimulus_and_behavioural_variables/__;!!HJOPV4FYYWzcc1jazlU!9wWmHlrqOw2i5wz-zEXDGPenolNex9cHEmkNNsigdcddc09l7azQ4kpz6lX4-nZSQa3pxx2OkmZ9MVtF281C$ ),
there is no example in this regard, I am not sure if the analysis is
applicable to my study. The following is the potential configuration and
hope that I am on the right track. Any suggestion is much appreciated!

cfg         = [];
cfg.channel = {'MEG'};
cfg.latency = [0 1];

cfg.method           = 'montecarlo';
cfg.statistic        = ''ft_statfun_correlationT'';
cfg.correctm         = 'cluster';
cfg.clusteralpha     = 0.05;
cfg.clusterstatistic = 'maxsum';
cfg.minnbchan        = 2;
cfg.neighbours       = neighbours;
cfg.tail             = 0;
cfg.clustertail      = 0;
cfg.alpha            = 0.025;
cfg.numrandomization = 500;

Nsubj  = 10;     %  the number of subjects
design(1,1:Nsubj*4)       = [ 0.5,0.6,0.2,0.3......];
cfg.design           = design;
cfg.ivar             = 1;

[stat] = ft_timelockstatistics(cfg, power_condition1{:},
power_condition2{:}, power_condition3{:}, power_condition4{:}))

Many thanks!
Chih-Hsin Tseng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230601/54ef603c/attachment.htm>


More information about the fieldtrip mailing list