Open tstenner opened 3 years ago
The solution would thus be to disable left
for statTest.tail
then, right?
That's one possibility, but I'm currently thinking about implementing it instead. Would be easier if Matlab had a binary search built in, but I'll manage without it.
Yes, would be great if you can implement. Cheers,
Arno
On Feb 24, 2021, at 8:20 AM, Tristan Stenner notifications@github.com wrote:
That's one possibility, but I'm currently thinking about implementing it instead. Would be easier if Matlab had a binary search built in, but I'll manage without it.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Tristan, thanks for this catch - I don't have the code in front of me, but if it doesn't have the left-tailed test and you feel up to adding/fixing that and submitting a PR (should be a one line change for the new case) that will be much appreciated!
I believe you also had some other bug fixes - want to add those as PRs too?
Thanks! Tim
On Wed, Feb 24, 2021 at 10:24 AM Arnaud Delorme notifications@github.com wrote:
Yes, would be great if you can implement. Cheers,
Arno
On Feb 24, 2021, at 8:20 AM, Tristan Stenner notifications@github.com wrote:
That's one possibility, but I'm currently thinking about implementing it instead. Would be easier if Matlab had a binary search built in, but I'll manage without it.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/SIFT/issues/2#issuecomment-785278858, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5LRG5QBXCON5C4WXBOC43TAU75DANCNFSM4YENQ5EQ .
As far as I can see, the SIFT function is functionally identical to the one in eeglab\functions\statistics\
, so rather than fix this one I propose to remove it from SIFT and once https://github.com/sccn/eeglab/pull/299 is merged add a check against the EEGLAB version.
stat_surrogateStats
forwards thestatTest.tail
parameter tostat_surrogate_pvals
which does a two-tailed test whenstatTest.tail
isboth
and a right-tailed test for all other inputs.Despite this,
stat_surrogateStats
printseven though the p values are for a right sided test.