signtest
Sign test
Syntax
Description
returns
the p-value of a two-sided sign test. Here,p
= signtest(x
,y
)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-value for the sign test with additional options
specified by one or more p
= signtest(x
,y
,Name,Value
)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.
Examples
Input Arguments
Output Arguments
More About
Algorithms
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
.
References
[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.
Version History
Introduced before R2006a