Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Problems with group comparisons using non parametric statistics

1 Ansicht (letzte 30 Tage)
Eric
Eric am 22 Sep. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi all,
I have used EEGLABs function 'spectopo' to extract the power values and later found the band specific values. Now, I'm interested in using nonparametric statistics to test for significance.
What I'm trying to do is to divide the sets (15 sets x 19 channels) in to three groups and do the comparisons between the mean value of the power in each electrode like group 1 vs group 2, group 2 vs group 3 and so on. Afterwards, I'm trying to find the significant p-values. The only problem is that I can't get it to work probably because it either saying that the index exceeds the matrix dimentions or that it compares the values for 1 electrode (p-values are then 1).
I hope that someone can help.
Script:
load('Powerinalpha.mat');
for freqband = 1:2 switch freqb pow = Alpha; pow = Beta; end
pvalue = 0.05;
for session = 1:2
matr = [];
if session==1
matr = pow(1:5,:,:);
else
matr = dataset(6:10,:,:);
end
for channel = 1:21
Pre = datamat(:,:,channel);
Post = datamat(:,:,channel);
[p, h, stats] = signrank(squeeze(Post), squeeze(Pre), 'alpha', pcrit);
Values.sig(freqb,session,channel) = h;
Values.pval(freqb,session,channel) = p;
Values.signedrank(freqb,session,channel) = stats.signedrank;
end
nonpara.channelsig{freqband,session} = find(Values.pval(freqband,session,:)<pcrit);
end
end

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by