<div dir="ltr">Hi Kaitlyn,<div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div>
<p style="margin:0px;line-height:normal;min-height:14px"><font face="times new roman, serif" size="4" color="#000000">My question is this: what is the appropriate design array for computing a correlation with ft_statfun_correlationT? Is the behavioral variable
 supposed to be part of the design or must it be part of a dummy structure designed to be similar in size and structure to the frequency data?</font></p></div></div></div></blockquote><div><br></div><div>It's really as described on the page you referred to (<a href="http://www.fieldtriptoolbox.org/faq/how_can_i_test_for_correlations_between_neuronal_data_and_quantitative_stimulus_and_behavioural_variables">http://www.fieldtriptoolbox.org/faq/how_can_i_test_for_correlations_between_neuronal_data_and_quantitative_stimulus_and_behavioural_variables</a>)</div><div><br></div><div><pre class="" style="padding:0.5em;margin-top:0px;font-size:12px;border:1px dashed rgb(204,204,204);color:rgb(0,0,0);overflow:hidden;font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;background-color:rgb(247,249,250);white-space:pre-wrap;width:640px;text-align:justify">n1 = 3;    % n1 is the number of subjects
design(1,1:n1)       = [0.6 0.9 0.1]; %here we insert our independent variable (behavioral data) in the cfg.design matrix, in this case reaction times of 3 subjects.

cfg.design           = design;
cfg.ivar             = 1; 
 
stat = ft_freqstatistics(cfg, data_brain{:});</pre></div><div> </div><div>where data_brain is a multiple subjects structure in case you're doing this at the second/group level (i.e. correlate a behavioral variable to a neural variable across subjects). Thus, a dummy variable is no longer needed.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div>
<p style="margin:0px;line-height:normal;min-height:14px"><font face="times new roman, serif" size="4" color="#000000">Alternatively, is there a way to get, for every individual in the grand average, one value representing the average power for, e.g., 300-600ms
 in the 4-7Hz range?</font></p></div></div></div></blockquote><div><br></div><div>You may want to use ft_freqdescriptives for that, per subject.</div><div><br></div><div>Best, Arjen</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><span class=""><font color="#888888"><div><div dir="ltr"><div><font face="times new roman, serif" size="4" color="#000000"></font></div>
</div>
</div>
</font></span></div>
</div>

</blockquote></div><br></div></div>