The problem has been sovled, and it works well with the fix. Thank you very much!
Dear Prof Dien, I am trying to conduct a robust ANOVA analysis on my data with 3 groups(A, B, C) x 2 valence (pface, nface ) x 2 congruency (C, I). However, I receive the following error message when the level of between-subject factor is 3: Index exceeds the number of array elements. Index must not exceed 3. Error in ep_ADF (line 834) sampleN=sum(newNX(find(groupContrast{betweenGroup}))); Error in ep (line 8288) ep_ADF(Y, ANOVAdata.subjects, trimOption, EPmain.preferences.anova, ANOVAmethod, factorNames,...