You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
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
The text was updated successfully, but these errors were encountered: