<html 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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 5 4 2 2 2 2 2 4;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-GB link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Dear Jan-Mathijs,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>thank you so much for your help! This indeed fixed it for me. My data produced some NaN when I fed it into the timelockanalysis function, I fixed it and now I’m seeing stats/probabilities when running the F-Test! Thanks a lot!</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Have a nice day!</p><p class=MsoNormal>Enya</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:jan.schoffelen@donders.ru.nl">Schoffelen, J.M. (Jan Mathijs)</a><br><b>Sent: </b>17 March 2021 11:14<br><b>To: </b><a href="mailto:fieldtrip@science.ru.nl">FieldTrip discussion list</a><br><b>Subject: </b>Re: [FieldTrip] indepsamplesF produces NaN</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:black'>Dear Enya,</span> <o:p></o:p></p><div><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:black'>Assuming that all went well with the definition of the design matrix etc, I suspect that there are NaNs in your data that cause you troubles.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:black'>The difference between the ‘ft_statfun_indepsamplesT’, and ‘ft_statfun_indepsamplesF’ is that the former knows how to handle NaNs in the data, whereas the latter doesn’t. My first hunch would therefore be that your data contains NaNs or Infs. Even a single NaN (or inf) would spoil it for the rest of the well-behaved data samples.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:black'>Best wishes,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:black'>Jan-Mathijs<o:p></o:p></span></p></div><div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>On 16 Mar 2021, at 15:07, Enya Weidner <<a href="mailto:enya.weidner@uni-bielefeld.de">enya.weidner@uni-bielefeld.de</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'>Hi everyone!</span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'>I am currently trying to run statistical analyses on timelocked data by comparing the values of three different experimental conditions with help of an F-Test. I tried using the “indepsamplesF” function and it runs smoothly with no errors (there is a warning when I run the montecarlo method saying: “no clusters were found in the observed data”) but produces NaNs in the probabilities and test-statistics. This happens for both the “montecarlo” and the “analytic” method. If I run just simple t-Tests I am getting interpretable results. Does this simply indicate that there are no significant differences between conditions? Wouldn’t there still be an F-value indicating such a result?  </span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'>Any ideas as to why this happens?</span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'>Thanks a lot in advance for your help!</span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial",sans-serif'>Enya Weidner</span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial",sans-serif'>Universität Bielefeld</span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial",sans-serif'>Fakultät für Psychologie und Sportwissenschaft</span><o:p></o:p></p></div><div><p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial",sans-serif'>AE02 Affektive Neuropsychologie</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><pre style='margin-bottom:12.0pt;background:white;background-position:initial initial;background-repeat:initial initial'><span style='font-size:9.0pt;color:black'>----------------------<br>M.Sc. Enya Weidner<br>Universität Bielefeld<br>Fakultät für Psychologie und Sportwissenschaft<br>AE02 Affektive Neuropsychologie</span><o:p></o:p></pre><pre style='margin-bottom:14.0pt;background:white;background-position:initial initial;background-repeat:initial initial'><span style='font-size:9.0pt;color:black'>Raum: T5-220<br>Telefon: 0521-106 4533<br>Email: <a href="mailto:enya.weidner@uni-bielefeld.de">enya.weidner@uni-bielefeld.de</a></span><o:p></o:p></pre><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p></div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif'>_______________________________________________<br>fieldtrip mailing list<br></span><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip"><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif'>https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span></a><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif'><br></span><a href="https://doi.org/10.1371/journal.pcbi.1002202"><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif'>https://doi.org/10.1371/journal.pcbi.1002202</span></a><o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>