<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>As mentioned in one of the previous threads you linked to, it is possible to hack this test in Fieldtrip by creating a fake dataset where all the samples are 0, and comparing your real dataset to this one with a paired t-test. However, as Eric Maris described in one of the threads you linked, while this hack "works" to get a p-value, there may be conceptual problems with interpreting it the same way as a permutation test, as it's debatable/unclear what the null hypothesis is. <br clear="all"></div><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><span><div>---<br></div>Stephen Politzer-Ahles<br>The Hong Kong Polytechnic University<br>Department of Chinese and Bilingual Studies<br><a href="http://www.mypolyuweb.hk/~sjpolit/" target="_blank">http://www.mypolyuweb.hk/~sjpolit/</a></span><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank"></a></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 11, 2019 at 6:35 PM <<a href="mailto:fieldtrip-request@science.ru.nl">fieldtrip-request@science.ru.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send fieldtrip mailing list submissions to<br>
<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:fieldtrip-request@science.ru.nl" target="_blank">fieldtrip-request@science.ru.nl</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:fieldtrip-owner@science.ru.nl" target="_blank">fieldtrip-owner@science.ru.nl</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of fieldtrip digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. One-sample T-test with cluster-based statistics at the<br>
group-level (Andrea Brovelli)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 11 May 2019 11:22:38 +0200<br>
From: Andrea Brovelli <<a href="mailto:andrea.brovelli@univ-amu.fr" target="_blank">andrea.brovelli@univ-amu.fr</a>><br>
To: <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>
Subject: [FieldTrip] One-sample T-test with cluster-based statistics<br>
at the group-level<br>
Message-ID: <<a href="mailto:b629ed59-d85b-0b70-cec4-32fc4b010efd@univ-amu.fr" target="_blank">b629ed59-d85b-0b70-cec4-32fc4b010efd@univ-amu.fr</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
Dear all,<br>
<br>
I'm sorry to insist on this issue which has largely discussed on the <br>
mailing list <br>
(<a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2018-October/025301.html" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/pipermail/fieldtrip/2018-October/025301.html</a>) <br>
(<a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2018-August/012314.html" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/pipermail/fieldtrip/2018-August/012314.html</a>), <br>
but I cannot find an easy way out to perform a one-sample t-test with <br>
cluster-based statis at the group (or single subject) level using Fieldtrip.<br>
<br>
As you are probably aware, MNE-python has implemented such test in this <br>
code <br>
<<a href="https://martinos.org/mne/stable/generated/mne.stats.permutation_cluster_1samp_test.html" rel="noreferrer" target="_blank">https://martinos.org/mne/stable/generated/mne.stats.permutation_cluster_1samp_test.html</a>> <br>
starting from the fact that [lines 1182-1186]:<br>
<br>
"Because a 1-sample t-test on the difference in observations is <br>
mathematically equivalent to a paired t-test, internally this function <br>
computes a 1-sample t-test (by default) and uses sign flipping (always) <br>
to perform permutations. This might not be suitable for the case where <br>
there is truly a single observation under test"<br>
<br>
Is there a way to "hack" the current version of Fieldtrip to perform <br>
such test?<br>
<br>
Are you planning to implement it in the near future?<br>
<br>
Thanks a lot.<br>
<br>
Cheers,<br>
<br>
Andrea<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190511/dc364b06/attachment.html" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190511/dc364b06/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
<br>
<br>
------------------------------<br>
<br>
End of fieldtrip Digest, Vol 102, Issue 17<br>
******************************************<br>
</blockquote></div></div>