Mann whitney test
Hi
I want to perform a mann-whitney test in R, I am using following script on example dataset dataMW <- read.table("Mannwhitney.txt",h=T) attach(dataMW) names(dataMW)
boxplot(length~sex, data = dataMW)
wilcox.test(length~sex,mu=0,alt="two.sided",correct=TRUE, paired=FALSE, conf.int=TRUE, data = dataMW)
Example dataset
sex length
M 17.6
M 17.7
M 18.1
M 18.9
M 20.4
M 19.6
M 19.2
M 19.3
M 21.8
F 15.8
F 14.2
F 16.7
F 12
F 17.3
F 18.05
F 18
F 18.2
F 18.3
The script is running on the example dataset, but I want to perform it on multiple datasets, how can I perform, because it will be hectic to perform one by one. Looking for a response from your side.
• 751 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Can you use code format for your code? I am not sure if your question fits the bioinformatics criteria, seems more a statistical question.
Hello shivangi.agarwal800!
We believe that this post does not fit the main topic of this site.
As b.nota stated, this is pure stats, not bioinformatics. Please search/ask Cross Validated (Stats SE)
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!