<div dir="ltr"><div>Dear Emilio,</div><div><br></div><div>One idea could to be take a two-step approach:</div><div>1) calculate correlations for every single subject (of every channel-time-freq power x RT), and apply Fisher z-transformation <br></div><div>2) test those correlation values over subjects against 0, or some kind of control condition if you can get one.</div><div><br></div><div>Cheers,</div><div>Stephen<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op vr 8 nov. 2019 om 20:14 schreef Emilio A. Valadez <<a href="mailto:eavaladez@gmail.com">eavaladez@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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"><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>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>