Learn R Programming

RVAideMemoire (version 0.9-6)

wilcox.sign.test: Wilcoxon sign test

Description

Perform a Wilcoxon sign test to compare medians of two small paired samples or one median to a given value.

Usage

wilcox.sign.test(x, y, mu = NULL)

Arguments

x
numeric vector (first sample).
y
optional numeric vector (second sample).
mu
theoretical median.

Value

  • datavariable(s) name.
  • mutheoretical median.
  • p.valuep-value of the test.

See Also

wilcox.test

Examples

Run this code
x<-rnorm(7,3,1.5)
y<-rnorm(7,5.5,2)
wilcox.sign.test(x,y)

theo=4
wilcox.sign.test(x,mu=theo)

Run the code above in your browser using DataLab