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

View source: R/simple.median.test.R

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

1 |

`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

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

```
Loading required package: MASS
Loading required package: HistData
Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2
Attaching package: 'Hmisc'
The following objects are masked from 'package:base':
format.pval, units
Attaching package: 'UsingR'
The following object is masked from 'package:survival':
cancer
[1] 0.2890625
```

UsingR documentation built on May 2, 2018, 1:03 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.