<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Last question :<br>
Is this procedure you are suggesting equivalent to the sign flipping approach in MNE?<br>
It does not seem to me.<br>
Cheers,<br>
Andrea<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> BROVELLI Andrea<br>
<b>Envoyé :</b> samedi 11 mai 2019 13:29:49<br>
<b>À :</b> FieldTrip discussion list<br>
<b>Objet :</b> RE: [FieldTrip] One-sample T-test with cluster-based statistics at the group-level</font>
<div> </div>
</div>
<div>JM you are the best! Since 2004 :)<br>
<br>
Strangely enough I could find this solution on the discussion list. Thanks a lot. We'll try this out.<br>
<br>
Andrea<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> fieldtrip <fieldtrip-bounces@science.ru.nl> de la part de Schoffelen, J.M. (Jan Mathijs) <jan.schoffelen@donders.ru.nl><br>
<b>Envoyé :</b> samedi 11 mai 2019 12:01:59<br>
<b>À :</b> FieldTrip discussion list<br>
<b>Objet :</b> Re: [FieldTrip] One-sample T-test with cluster-based statistics at the group-level</font>
<div> </div>
</div>
<div>Caro Andrea,
<div class=""><br class="">
</div>
<div class="">Yes, it can be done.</div>
<div class="">The procedure would be to duplicate your data object, and to replace all functional values with zeros, then do the statistical inference with cfg.statistic = ‘depsamplesT’; This has been possible since 2004 or so, which was before the existence
 of MNE-python, as you are probably aware :).</div>
<div class=""><br class="">
</div>
<div class="">Note that it is indeed (as mentioned in your quote) statistically questionable to test a single condition against 0 under the permutation framework, since there are no conditions to permute.</div>
<div class=""><br class="">
</div>
<div class="">Alla prossima,</div>
<div class=""><br class="">
</div>
<div class="">JM</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 11 May 2019, at 11:22, Andrea Brovelli <<a href="mailto:andrea.brovelli@univ-amu.fr" class="">andrea.brovelli@univ-amu.fr</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
<p class="">Dear all,</p>
<p class="">I'm sorry to insist on this issue which has largely discussed on the mailing list (<a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2018-October/025301.html" class="">https://mailman.science.ru.nl/pipermail/fieldtrip/2018-October/025301.html</a>)
 (<a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2018-August/012314.html" class="">https://mailman.science.ru.nl/pipermail/fieldtrip/2018-August/012314.html</a>), but I cannot find an easy way out to perform a one-sample t-test with cluster-based
 statis at the group (or single subject) level using Fieldtrip.</p>
<p class="">As you are probably aware, MNE-python has implemented such test in this
<a moz-do-not-send="true" href="https://martinos.org/mne/stable/generated/mne.stats.permutation_cluster_1samp_test.html" class="">
code</a> starting from the fact that [lines 1182-1186]:</p>
<p class="">"Because a 1-sample t-test on the difference in observations is mathematically equivalent to a paired t-test, internally this function computes a 1-sample t-test (by default) and uses sign flipping (always) to perform permutations. This might not
 be suitable for the case where there is truly a single observation under test"</p>
<p class="">Is there a way to "hack" the current version of Fieldtrip to perform such test?</p>
<p class="">Are you planning to implement it in the near future?</p>
<p class="">Thanks a lot.</p>
<p class="">Cheers,<br class="">
</p>
<p class="">Andrea<br class="">
</p>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>