Get the p-value from a u-test
get.utest.p.RdPerforms a non-parametric test by assigning ranks to individual observations in the samples. Tests the median differences between the compared samples. Returns the p-value from a u-test with useful default parameters. Returns NA if the u-test is uncalculable (i.e. does try() handling).
Arguments
- x
 Vector of numbers to analyze
- group1
 Vector of TRUE/FALSE indicating which are the x samples for the u-test
- group2
 Vector of TRUE/FALSE indicating which are the y samples for the u-test
- paired
 Do a paired u-test?
- alternative
 What's the null-hypothesis?
Details
If group2 = NULL, or if both group1 and group2 are given and paired is TRUE, the Wilcoxon signed rank test will be performed. If both group1 and group2 are given, the Wilcoxon rank sum test will be performed.