Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

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

UsingR

Data Sets, Etc. for the Text "Using R for Introductory Statistics", Second Edition

v2.0-6
GPL (>= 2)
Authors
John Verzani <verzani@math.csi.cuny.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.