Info

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

Size of the sample for ranksum analysis

1 Ansicht (letzte 30 Tage)
Blanca Larraga
Blanca Larraga am 28 Nov. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I am using ranksum with two samples of 200 elements and I get a p value which does not make any sense and if I do the boxplot I can clearly see that there is no difference between the two samples even though I get h=1 and a p value really small. Is there any other function I should use for this prupose?
  1 Kommentar
Jos (10584)
Jos (10584) am 28 Nov. 2018
Without knowledge of your values or code, it is impossible to tell if you applied ranksum correctly. Note that even small, unimportant, differences can become statistically significant when you increase the N ...

Antworten (1)

Blanca Larraga
Blanca Larraga am 28 Nov. 2018
Well, I have an excel file with the data. I import the data with the xlsread function to get to column of values from this file. I declare x1 with the 200 data with one condition and then I declare y1 with the other 200 data which are similar/different and I want to see if these two samples are related or not. My code is simple:
x1=xlsread('datos_conjunto.xlsx', 'M_paras_i_3', 'A2:A202');
y1=xlsread('datos_conjunto.xlsx', 'M_paras_o_3', 'A2:A202');
[p1,h1,stats1]=ranksum(x1,y1);
If I then use boxplot:
A=[x1,y1]
boxplot(A)
I see from the boxplot that there are no significance but the p-value is something 10^-27 and this does not make any sense.
I hope this clarifies the issue.
Thanks.
Blanca

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by