Hello,
I am running a number of cluster-based permutation tests, and each time, it results in p values all equal to 1.0. Would anyone be able to help pinpoint if I have set up my test wrong?
I am using repeated measures data from 50 participants, comparing between 2 conditions. Each participant’s data consists of 129 channels across 20 scales.
Below, I write the details for one of the tests.
Code for the statistical test:
w, clusters, clusters_pv, h0 = mne.stats.permutation_cluster_test(X, threshold=434, n_permutations=1000, stat_fun = wilcox_stat_fun, adjacency=adj_matrix)
Details on the parameters:
X is an array of the following dimensions: (2, 50, 129, 20)
Stat_fun: (wilcoxon signed rank test)
def wilcox_stat_fun(x, y, axis=0):
return stats.wilcoxon(x,y,axis=axis)[0]
Adjacency: (accounting for 129 channels and 20 scales)
adj_matrix = mne.channels.find_ch_adjacency(raw.info, ch_type='eeg')[0]
adj_matrix = mne.stats.combine_adjacency(adj_matrix, 20)
MNE version: 1.5.0
Operating system: Windows 10
Thank you for your time!
-Diksha