# NOT RUN {
##Given some data: 3, 4, 7, 10, 4, 12, 1, 9, 2, 15
##If we want to test the hypotheses H_0: m=5 against H_1: m>5
##without using normal approximation:
vec = c(3, 4, 7, 10, 4, 12, 1, 9, 2, 15)
res = Wilcox.m.test(dat = vec, m_h0 = 5,
alternative = 'greater', normal_approx = FALSE)
##If we want to apply the normal approximation(Z-test), with the same hypotheses:
res = Wilcox.m.test(dat = vec, m_h0 = 5,
alternative = 'greater', normal_approx = TRUE)
# }
Run the code above in your browser using DataLab