Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat_surrogateStats calculates right-tailed p-values, even for statTest.tail='left' #2

Open
tstenner opened this issue Feb 24, 2021 · 5 comments

Comments

@tstenner
Copy link
Contributor

stat_surrogateStats forwards the statTest.tail parameter to stat_surrogate_pvals which does a two-tailed test when statTest.tail is both and a right-tailed test for all other inputs.

Despite this, stat_surrogateStats prints

'This is a left-sided test for significant differences between conditions'

even though the p values are for a right sided test.

@arnodelorme
Copy link
Collaborator

The solution would thus be to disable left for statTest.tail then, right?

@tstenner
Copy link
Contributor Author

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.

@arnodelorme
Copy link
Collaborator

arnodelorme commented Feb 24, 2021 via email

@trmullen
Copy link
Collaborator

trmullen commented Feb 24, 2021 via email

@tstenner
Copy link
Contributor Author

tstenner commented May 17, 2021

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 sccn/eeglab#299 is merged add a check against the EEGLAB version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants