<div dir="ltr"><div>Dear FieldTrip community,</div><div><br></div><div>I would like to use ft_freqstatistics to test correlations between trial reaction times and time-frequency power values. I know that this can be done on a between-subject level (correlating subjects' mean reaction times with their mean time-frequency responses), but I am wondering if a similar analysis can be done on a single trial level across all subjects. That is, can ft_freqstatistics be used to test whether, for a given sample of subjects, there is a within-subject correlation between single-trial RT and single-trial time-frequency activity? If so, what should cfg.design look like and which cfg.statistic is most appropriate?</div><div><br></div><div>For cfg.design, I was thinking it might need to be something like this:</div><div><br></div><div>
cfg.design(1,:) 

= [400 432 450 500 540 325 456 299 302 487]; % single-trial RTs in ms<br></div><div>
cfg.design(2,:) 

= [1 2 3 4 5 6 7 8 9 10]; % global trial numbers across all subjects</div><div>
cfg.design(3,:) 

= [1 1 1 1 2 2 2 3 3 3 ]; % subject numbers</div><div><br></div><div>...with cfg.ivar = 1, cfg.uvar = 2, and cfg.wvar = 3, but I'm not sure whether this is a correct use of cfg.wvar. Am I on the right track?</div><div><br></div><div>Thank you,</div><div>Emilio<br></div><div><br>

</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>--<br></b></div><div>Emilio A. Valadez, Ph.D.<br></div><div>Postdoctoral Fellow</div><div>Child Development Lab</div><div>University of Maryland, College Park</div></div></div></div></div></div></div></div>