Using ranksum function

I have a distribution which is not normal and i want to use wilcoxon rank test to test if the median is =0;if the observations are in vector X can i run the test this way: [p,h]=ranksum(X,0)

Respuestas (2)

Oleg Komarov
Oleg Komarov el 14 de Mayo de 2011

1 voto

p = signrank(x) performs a two-sided signed rank test of the null hypothesis that data in the vector x comes from a continuous, symmetric distribution with zero median, against the alternative that the distribution does not have zero median. The p value of the test is returned in p.
bym
bym el 14 de Mayo de 2011

0 votos

yes
doc ranksum
will confirm that the input arguments need not be equal

Etiquetas

Preguntada:

el 14 de Mayo de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by