Main Content

Sign test

returns
the `p`

= signtest(`x`

,`y`

)*p*-value of a two-sided sign test. Here,`signtest`

tests
for the hypothesis that the data in `x`

– `y`

has
a distribution with zero median against the alternative that the distribution
does not have zero median. Note that a hypothesis of zero median for `x`

– `y`

is
not equivalent to a hypothesis of equal median for `x`

and `y`

.

returns
the `p`

= signtest(`x`

,`y`

,`Name,Value`

)*p*-value for the sign test with additional options
specified by one or more `Name`

,`Value`

pair
arguments.

`[___] = signtest(`

returns
any of the output arguments in the previous syntaxes for the sign
test with additional options specified by one or more `x`

,`m`

,`Name,Value`

)`Name`

,`Value`

pair
arguments.

For a one-sample test, `signtest`

omits values
in `x`

that are zero or `NaN`

.

For a two-sample test, `signtest`

omits values
in `x`

– `y`

that are zero
or `NaN`

.

[1] Gibbons, J. D., and S. Chakraborti. *Nonparametric
Statistical Inference*, 5th Ed. Boca Raton, FL: Chapman
& Hall/CRC Press, Taylor & Francis Group, 2011.

[2] Hollander, M., and D. A. Wolfe. *Nonparametric
Statistical Methods*. Hoboken, NJ: John Wiley & Sons,
Inc., 1999.