<div dir="ltr">Hi Conny,<div><br></div><div>Yes, you can delete the beta field, or alternatively, call ft_regressconfound with cfg.beta = 'no' (perhaps this should be the default).</div><div><br></div><div>Didn't know there was a debug team..</div><div><br></div><div>Best,</div><div>Arjen </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 9:46 AM, Conny Quaedflieg <span dir="ltr"><<a href="mailto:cornelia.quaedflieg@uni-hamburg.de" target="_blank">cornelia.quaedflieg@uni-hamburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="DE" link="#0563C1" vlink="#954F72"><div class="m_8859717636855154088WordSection1"><p class="MsoNormal"><span lang="EN-US">Dear Fieldtrip-users, <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></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. <u></u><u></u></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. <u></u><u></u></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. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></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?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></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. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">Best <u></u><u></u></p><p class="MsoNormal">Dr Conny Quaedflieg <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-family:"Myriad Pro",sans-serif;color:gray">Mit freundlichen Grüßen,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Myriad Pro",sans-serif;color:gray"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:1.0pt"><u></u> <u></u></span></p><p class="MsoNormal" style="line-height:115%"><span><img width="280" height="71" id="m_8859717636855154088Bild_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"><u></u><u></u></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">E-Mail</span></b><span style="font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7f7f7f">: </span><span><a href="mailto:cornelia.quaedflieg@uni-hamburg.de" target="_blank"><span style="font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7f7f7f">cornelia.quaedflieg@uni-<wbr>hamburg.de</span></a></span><span style="font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7f7f7f"> <u></u><u></u></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">Tel.</span></b><span style="font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7f7f7f">: </span><span><a href="tel:+49%2040%2042838-5448" target="_blank"><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"> <b>Website</b>: </span><span><a href="https://www.psy.uni-hamburg.de/arbeitsbereiche/kognitionspsychologie/personen/quaedflieg-conny.html" target="_blank"><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"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>