Learn R Programming

UsingR (version 2.0-7)

simple.median.test: Do simple sign test for median -- no ranks

Description

Do simple sign test like wilcox.test without ranking. Just computes two-sided p-value, no confidence interval is given.

Usage

simple.median.test(x, median=NA)

Arguments

x

A data vector

median

The value of median under the null hyptohesis

Value

Returns the p value.

Details

Unlike wilcox.test, this tests the null hypothesis that the median is specified agains the two-sided alternative. For illustration purposes only.

See Also

wilcox.test

Examples

Run this code
# NOT RUN {
x<-c(12,2,17,25,52,8,1,12)
simple.median.test(x,20)
# }

Run the code above in your browser using DataLab