Wilcoxon 'signrank' test zval is not calculating
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mert Dogan
el 27 de Mayo de 2022
Comentada: Star Strider
el 13 de Mzo. de 2024
Hello everyone,
I have a matrix for statistical analysis.
I performed the normal distribution test with the shapiro wilks test and observed that the data in my hand were not normally distributed.
According to this matrix, I want to analyze the pre- and post-intervention data of 15 people with signrank. When I do this analysis, the zval value cannot be determined as output. I couldn't understand why this happened? If the zval value cannot be calculated, is there an alternative test you can recommend?
I attaced my code and examples of variables.
load('ExampleData.mat');
[p,h,stats]=signrank(Var11(:,1),Var11(:,2));
stats
1 comentario
Frederik Bergmann
el 24 de Oct. de 2022
Same problem here. and I tried both methods ('exact' and 'approximate')
Respuesta aceptada
Star Strider
el 27 de Mayo de 2022
The ‘zval’ is only returned when the 'method' is 'approximate'.
There is no statistical difference between the vectors:
[p,h,stats]=signrank(Var11(:,1),Var11(:,2), 'method','approximate')
p =
0.30029
h =
logical
0
stats =
struct with fields:
zval: -1.0358
signedrank: 36
.
8 comentarios
Maria Lazzaroni
el 13 de Mzo. de 2024
but if I use the 'exact' result, can I use the z value that I find when running the function signrank with 'method' = 'approximate'?
I do not understand why Matlab does not return the z value when running signrank with the method 'exect'.
Thanks a lot for the help ;)
Star Strider
el 13 de Mzo. de 2024
No.
That’s probably because the 'exact' method doesn’t use the normal distribution to calculate the probability. (The documentation doesn’t go into detail about that or how it calculates the probability for the 'exact' method. The references at the end of that page probably provide those details. I don’t have free access to them.)
My pleasure!
Más respuestas (0)
Ver también
Categorías
Más información sobre Hypothesis Tests en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!