<div dir="ltr">Dear Users,<div><br></div><div>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. </div><div><br></div><div>Because in the faq (<a href="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$">https://www.fieldtriptoolbox.org/faq/how_can_i_test_for_correlations_between_neuronal_data_and_quantitative_stimulus_and_behavioural_variables/</a>), 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! </div><div><br></div><div>cfg = [];<br>cfg.channel = {'MEG'};<br>cfg.latency = [0 1];<br><br>cfg.method = 'montecarlo';<br>cfg.statistic = ''ft_statfun_correlationT'';<br>cfg.correctm = 'cluster';<br>cfg.clusteralpha = 0.05;<br>cfg.clusterstatistic = 'maxsum';<br>cfg.minnbchan = 2;<br>cfg.neighbours = neighbours; <br>cfg.tail = 0;<br>cfg.clustertail = 0;<br>cfg.alpha = 0.025;<br>cfg.numrandomization = 500;</div><div><br>Nsubj = 10; % the number of subjects<br>design(1,1:Nsubj*4) = [
0.5,0.6,0.2,0.3......]; <br>cfg.design = design;<br>cfg.ivar = 1;<br><br></div><div>[stat] = ft_timelockstatistics(cfg, power_condition1{:}, power_condition2{:}, power_condition3{:}, power_condition4{:}))</div><div><br></div><div>Many thanks!</div><div>Chih-Hsin Tseng</div></div>