Do simple sign test for median – no ranks
Do simple sign test like wilcox.test without ranking. Just computes two-sided p-value, no confidence interval is given.
simple.median.test(x, median=NA)
x |
A data vector |
median |
The value of median under the null hyptohesis |
Unlike wilcox.test, this tests the null hypothesis that the median is specified agains the two-sided alternative. For illustration purposes only.
Returns the p value.
John Verzani
wilcox.test
x<-c(12,2,17,25,52,8,1,12) simple.median.test(x,20)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.