[FieldTrip] Behavior-power correlations

Kaitlyn Litcofsky kaitlynlitcofsky at gmail.com
Tue May 3 02:48:02 CEST 2016


Hi Xiaoming and Arjen,

After updating to the latest Fieldtrip, the code from the tutorial worked.

Thank you so much!
Kaitlyn

On Mon, May 2, 2016 at 5:54 PM, Xiaoming Du <XDu at mprc.umaryland.edu> wrote:

> Hi Kaitlyn,
>
> Which version of Fiedtrip you are using?
>
> I got similar error message when I used old version, but no error when I
> updated to latest version.
>
> Hope this will help.
>
> Xiaoming
>
>
> >>> Arjen Stolk <a.stolk8 at gmail.com> 5/2/2016 4:41 PM >>>
> Hi Kaitlyn,
>
> 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?
>>
>
> It's really as described on the page you referred to (
> http://www.fieldtriptoolbox.org/faq/how_can_i_test_for_correlations_between_neuronal_data_and_quantitative_stimulus_and_behavioural_variables
> )
>
> 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{:});
>
> 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.
>
> 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?
>>
>
> You may want to use ft_freqdescriptives for that, per subject.
>
> Best, Arjen
>
>>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>



-- 
Kaitlyn Litcofsky
Graduate Student, Cognitive Psychology
006 Moore Building
Pennsylvania State University
University Park, PA 16802
Email: kal378 at psu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160502/8062b8d8/attachment-0002.html>


More information about the fieldtrip mailing list