<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=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Myriad Pro";
        panose-1:2 11 5 3 3 4 3 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
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.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Dear Fieldtrip-users, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>We are not able to use function ft_selectdata after applying head movement correction using ft_regressconfound. The error that we get is the well-known index exceeds matrix dimensions. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>It is due to the fact that the size of x is incorrect, it doesn’t correspond to the number of trials but is 7 which is the number of regressors in the beta variable that is created by using ft_regressconfound. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>There is a simple way to solve it and this is deleting the field ‘beta’ before running ft_select data. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>My question is, just to be sure, the variance is regressed out by using ft_regressconfound so the beta variable is not needed in any further step right?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Maybe this is also something for the debug team? Thus that ft_selectdata runs after running ft_regressconfound. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>Best <o:p></o:p></p><p class=MsoNormal>Dr Conny Quaedflieg <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Myriad Pro",sans-serif;color:gray;mso-fareast-language:DE'>Mit freundlichen Grüßen,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Myriad Pro",sans-serif;color:gray;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:1.0pt;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='mso-fareast-language:DE'><img width=280 height=71 id="Bild_x0020_1" src="cid:image003.jpg@01D30C88.DC033680" alt=Unbenannt-1></span><b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'><o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>E-Mail</span></b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>: </span><span style='mso-fareast-language:DE'><a href="mailto:cornelia.quaedflieg@uni-hamburg.de"><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F'>cornelia.quaedflieg@uni-hamburg.de</span></a></span><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'> <o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>Tel.</span></b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>: </span><span style='mso-fareast-language:DE'><a href="tel:+49%2040%2042838-5448"><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F'>+49 40 42838-5448</span></a></span><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>   <b>Website</b>: </span><span style='mso-fareast-language:DE'><a href="https://www.psy.uni-hamburg.de/arbeitsbereiche/kognitionspsychologie/personen/quaedflieg-conny.html"><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#66B0FB'>Hyperlink</span></a></span><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>