Hello,
I am a student using R-Studio. I would like to run a wilcox.test() using:
- A binomial data (example: People > 180 and people <180) as 1 vs. 0
- About 80 observation regarding Group 1 and 0
My data is imported from excel. I am able to run wilcox.test() for 1 vs. 0 using for example observation 1. After that, I am running the same wilcox.test() for 1 vs. 0 using observation 2. My main problem is, that my simple method is very slow.
How can i run the wilcox.test() using 1 vs. 0 für all the 80 observations with only one code and have the same output as follows:
Wilcoxon rank sum test with continuity correction
data: Observation 1 by OnevsZero
W = 143.5, p-value = 0.01125
alternative hypothesis: true location shift is not equal to 0
95 percent confidence interval:
-0.18002023 -0.01998433
sample estimates:
difference in location
-0.1100015
Thank you very very much,
Alexandru