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

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1

Arguments

x

A data vector

median

The value of median under the null hyptohesis

Details

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

Value

Returns the p value.

Author(s)

John Verzani

See Also

wilcox.test

Examples

1
2
x<-c(12,2,17,25,52,8,1,12)
simple.median.test(x,20)

jverzani/UsingR documentation built on Aug. 3, 2020, 11:57 a.m.