Hello everyone,
I was told to run Mann-Whitney U test in Stata. Apparently, just found out Mann-Whitney U test is called Wilcoxon rank sum test in Stata instead of Mann-Whitney …
Soon right after I ran ranksum in Stata, I then cross checked with my friend, who is a SPSS user and has exactly Mann-Whitney test (as it is called) in the software, we found that the p-value generated by SPSS and Stata ended up being different.
I then found a blog site that has one discussion section in response to this problem, according the blogger himself, he also encountered the same problem of having different p-value generated by stata and R respectively. With regard to the issue of different p-values, the blogger suggested to use ranksumex instead of ranksum at the end of his article.
http://www.senresearch.org/stata-and...es-differ.html
After reading the entire article, I thought maybe it will be more appropriate to use “ranksumex” if my sample size appears to be less than 20, which is indeed in my case, but on the other hand, ranksum is only suitable to be used when your sample size is big enough.
Not sure if my assumption is right or not…
Or people just simply use “ranksum” as the standard synathax to run Wilcoxon rank sum test in stata despite of how big and small the sample size is?
Many thanks for the clarification in advance.
I was told to run Mann-Whitney U test in Stata. Apparently, just found out Mann-Whitney U test is called Wilcoxon rank sum test in Stata instead of Mann-Whitney …
Soon right after I ran ranksum in Stata, I then cross checked with my friend, who is a SPSS user and has exactly Mann-Whitney test (as it is called) in the software, we found that the p-value generated by SPSS and Stata ended up being different.
I then found a blog site that has one discussion section in response to this problem, according the blogger himself, he also encountered the same problem of having different p-value generated by stata and R respectively. With regard to the issue of different p-values, the blogger suggested to use ranksumex instead of ranksum at the end of his article.
http://www.senresearch.org/stata-and...es-differ.html
After reading the entire article, I thought maybe it will be more appropriate to use “ranksumex” if my sample size appears to be less than 20, which is indeed in my case, but on the other hand, ranksum is only suitable to be used when your sample size is big enough.
Not sure if my assumption is right or not…
Or people just simply use “ranksum” as the standard synathax to run Wilcoxon rank sum test in stata despite of how big and small the sample size is?
Many thanks for the clarification in advance.

Comment