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

Issue with Dim argument in TTest2 and ANOVA1 #2

Open
boergertf opened this issue Jun 18, 2024 · 1 comment
Open

Issue with Dim argument in TTest2 and ANOVA1 #2

boergertf opened this issue Jun 18, 2024 · 1 comment

Comments

@boergertf
Copy link

When trying to use several of the tests (e.g. ttest2, anova1) I ran into an issue with the call for "sum" and "mean". For example, when running permuanova1 I received the error:
"Error using sum
Invalid option. Option must be 'double', 'native', 'default', 'omitnan', or 'includenan'.

Error in permuanova1 (line 95)
nobs = sum(~isnan(x), 'all'); " It appears to me that the issue is with argument 'all' . When I tried deleting 'all', it through the same error for 'mean' in line 98.

I'm running it on MATLB 2018a on a computing cluster.

permucorr worked great on the other hand.

Is this likely to be a matlab version issue?

Thanks
Timothy Boerger

@mickcrosse
Copy link
Owner

Hi Timothy,

Thanks for bringing this issue to my attention. Unfortunately I believe it is a MATLAB version issue. If you do not have access to a more recent version of MATLAB, you can always replace sum(x, 'all') with sum(x(:)). I will try to find a solution to this in the meantime.

What was the specific error you were receiving with permuttest2?

Cheers,
Mick

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

2 participants