<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@Malgun Gothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello FieldTrip users,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to test an interaction effect using cluster-based permutation test.
<o:p></o:p></p>
<p class="MsoNormal">In my study, I have a between-subject conditions (older adults vs. younger adults) and a within-subject conditions(Hit vs. Miss). Therefore, it is 2 x 2 design.<o:p></o:p></p>
<p class="MsoNormal">I’ve tried to follow this tutorial (<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>),
 but it gave an error.<o:p></o:p></p>
<p class="MsoNormal">I think my design matrix might be the problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">First, I made two difference data structure like : Older adults (Hit-Miss difference) & Younger adults (Hit-Miss difference).<o:p></o:p></p>
<p class="MsoNormal">And let’s say I have 8 older adults and 12 younger adults. So I made my design matrix as : [1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 ]  <o:p></o:p></p>
<p class="MsoNormal">And set the cfg.uvar = 1;  cfg.statistic    = 'indepsamplesT';<o:p></o:p></p>
<p class="MsoNormal">However, when I ran it, it gave me an error as below:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">Error using ft_notification (line 314)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">A within-units shuffling requires a at least one unit variable and at least one independent variable<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">Error in ft_error (line 39)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">  ft_notification(varargin{:});<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">Error in resampledesign (line 168)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">  ft_error('A within-units shuffling requires a at least one unit variable and at least one independent variable');<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">Error in ft_statistics_montecarlo (line 213)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">resample = resampledesign(cfg, design);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">Error in ft_freqstatistics (line 194)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red">    [stat, cfg] = statmethod(cfg, dat, design);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">In this case, how can I get a result?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Thank you for your help in advance.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Cay<o:p></o:p></span></p>
</div>
</body>
</html>