<div dir="ltr"><div><div><div><div>Hi list,<br><br></div>Eventually we managed to figure this out off-list, but I just wanted to post a response here to show that it's been resolved (and in case someone in the future has a similar issue and finds this thread).<br></div>We ended up handling this by making a difference-of-differences wave to quantify the 2x2 within-subjects interaction (per <a href="http://www.fieldtriptoolbox.org/faq/how_can_i_test_an_interaction_effect_using_cluster-based_permutation_tests">http://www.fieldtriptoolbox.org/faq/how_can_i_test_an_interaction_effect_using_cluster-based_permutation_tests</a>) and then using ft_statfun_indepsamplesregrT to correlate that interaction effect with the subject-wise covariate (as opposed to comparing it to 0 with a regular t-test). For the cfg.design matrix we just used the list of the subjects' values on the covariate. The results we got seemed to make sense (i.e., they were consistent with what had been observed in the same dataset with a time-window analysis before this), but of course if we've done anything wrong or if anyone has suggestions for a better way to do this then we'd be happy to hear.<br><br></div>Best,<br></div>Steve<br><div><div><div><div><div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><div><br><br>---<br></div>Stephen Politzer-Ahles<br>University of Oxford<br>Language and Brain Lab<br>Faculty of Linguistics, Phonetics & Philology<br><a href="http://users.ox.ac.uk/~cpgl0080/" target="_blank">http://users.ox.ac.uk/~cpgl0080/</a></span></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Message: 1<br>
Date: Tue, 24 May 2016 08:57:46 +0000<br>
From: Alex Sel <<a href="mailto:alex.sel@psy.ox.ac.uk">alex.sel@psy.ox.ac.uk</a>><br>
To: "<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>" <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: [FieldTrip] Cluster-based permutation analysis statfun ANCOVA<br>
Message-ID:<br>
        <<a href="mailto:3123912FD054FE44A023073D2EFD213C8CA53F@MBX02.ad.oak.ox.ac.uk">3123912FD054FE44A023073D2EFD213C8CA53F@MBX02.ad.oak.ox.ac.uk</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Dear List,<br>
<br>
<br>
<br>
Apologies for the reposting...<br>
<br>
<br>
<br>
I am trying to perform a cluster-based permutation test. I have an experimental design with 2 within variables (2x2 design) and a covariate. I wonder how I can define the statistics in the script to include both the within-subject variables and the covariate. I am using the cfg.statistics  = 'depsamplesFmultivariate' but I am unsure how to define the covariate in the model.<br>
<br>
<br>
<br>
Any insight on this would be much appreciated.<br>
<br>
<br>
<br>
Best wishes<br>
<br>
<br>
<br>
Alex Sel, PhD<br>
Postdoctoral Researcher<br>
Department of Experimental Psychology,<br>
University of Oxford,<br>
9 South Parks Road,<br>
OX1 3UD<br>
Tel: 01865 271 340<br>
Email: <a href="mailto:Alex.sel@psy.ox.ac.uk">Alex.sel@psy.ox.ac.uk</a><br></blockquote></div></div></div></div></div></div></div></div></div>