Hi everyone, I'm writing for a suggestion about the use of the function bst_permtest for the statistics. I have let's say 20 subjects with 100 channels and two conditions A and B. I only have one point per channel, therefore I have a 100x1 matrix for each subject per condition. I want to use this function since my data are not derived from a brainstorm analysis but from an inlab script, but I need to use permutation statistics.
In the bst_permtest is written
INPUTS:
% - A, B : [Ma x Mb...] Variables to test
% - TestType : {'ttest_equal', 'ttest_unequal', 'ttest_paired', 'wilcoxon_paired', 'wilcoxon', 'signtest'}
% ttest_equal : Student's t-value, equal variance
% ttest_unequal : Student's t-value, unequal variance
% ttest_paired : Student's t-value, paired data
% signtest : Sign of the differences (paired)
however I am not sure how to structure the input data. I tried to compose a separate matrix for each condition A and B. The matrix was structured channels x subjects therefore 100 x 20. But I received the error message:
Error using permute
ORDER must be a numeric array.
Error in bst_permtest (line 57)
A = permute(A, [dimPerm, dimData]);
How should I structrure the input data in this function?
Thanks