Does the matlab ranksum function work for larger sample sizes?
Ältere Kommentare anzeigen
I'm using the matlab ranksum function for a power analysis of 2 samples and I'm getting statistical significance (small p-values). However, the textbook I have only uses the wilcoxon ransum test for non-parametric small sample sizes (sample sizes of 10 to 12), and my sample size is 50.
I wanted to know if the ranksum is still valid for larger sample sizes, or I'm getting these small p-values because my sample size is too large. Also, does anyone know what is the upper limit for a sample size that ranksum can handle?
Thanks.
Akzeptierte Antwort
Weitere Antworten (2)
the cyclist
am 20 Jul. 2017
Bearbeitet: the cyclist
am 20 Jul. 2017
0 Stimmen
I would expect the test to be valid for large samples.
The danger as one moves from small samples to really large samples shifts from "Do I have enough data to see a meaningful effect?" to "I have so much data that I can detect really tiny differences between samples, but are these statistically significant differences actually meaningful?" It becomes more important to have a sense of what a meaningful effect size is.
For example, with a huge sample you might be able to detect a difference of 1 day between two 5-year survival curves. But even though it is statistically significant, it might not be clinically significant.
I don't believe there is a conceptual upper limit to sample size. Just a computer memory limit. :-)
Blanca Larraga
am 28 Nov. 2018
0 Stimmen
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?
2 Kommentare
Elisa Iovene
am 23 Mär. 2021
Hello Blanca, I’m having the same problem. Have you solved the problem? It would be really useful Thanks!
Even thought the topic here is relevant, you will not usually get any response from a question and comment that are 3 years old. (I happened to see it quite by accident.)
I never noticed @Blanca Larraga's note here. But it is pretty easy to create a distribution that has statistically different ranksum(), but doesn't look very different to the eye (if you have enough data points). In the below code, you can see the difference, but barely. And I wasn't even trying very hard. :-)
rng default
N=200;
x1 = randn(N,1);
x2 = x1 + 0.21;
[p,h] = ranksum(x1,x2)
figure
boxplot([x1 x2])
Can you post your data, and give more details? If you tag me with @, I'll try to take a look.
Kategorien
Mehr zu Logistic Distribution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
