Documentation |
Sign test
p = signtest(x) returns the p-value for a two-sided sign test.
signtest tests the hypothesis that data in x has a continuous distribution with zero median against the alternative that the distribution does not have zero median at the 5% significance level.
p = signtest(x,y) returns the 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.
p = signtest(x,y,Name,Value) returns the p-value for the sign test with additional options specified by one or more Name,Value pair arguments.
[___] = signtest(x,m) returns any of the output arguments in the previous syntaxes for the test whether the data in x are observations from a distribution with median m against the alternative that the median is different from m.
[___] = signtest(x,m,Name,Value) returns any of the output arguments in the previous syntaxes for the sign test with additional options specified by one or more Name,Value pair arguments.