Hi,
Pairs with zero difference are usually excluded when the Wilcoxon matched-pairs signed-ranks test statistic is calculated, but the Stata implementation of this test (signrank) includes them and adjusts the variance of the statistic instead (STB reference from 1995). These approaches will in general not lead to identical P-values if zeros are present. Which method is preferable and why?
I noticed the problem when a colleague of mine tried to replicate a Stata 14.1-analysis performed by me in SPSS version 23.
The number of pairs in the analysis was 31 and only 11 of the differences were non-zero.
The P-value in SPSS was .119 compared to .278 in Stata.
The P-value will be .119 also in Stata if the pairs with zero difference are dropped before I run signrank.
Comments on that?
Pär-Ola Bendahl
Pairs with zero difference are usually excluded when the Wilcoxon matched-pairs signed-ranks test statistic is calculated, but the Stata implementation of this test (signrank) includes them and adjusts the variance of the statistic instead (STB reference from 1995). These approaches will in general not lead to identical P-values if zeros are present. Which method is preferable and why?
I noticed the problem when a colleague of mine tried to replicate a Stata 14.1-analysis performed by me in SPSS version 23.
The number of pairs in the analysis was 31 and only 11 of the differences were non-zero.
The P-value in SPSS was .119 compared to .278 in Stata.
The P-value will be .119 also in Stata if the pairs with zero difference are dropped before I run signrank.
Comments on that?
Pär-Ola Bendahl
Comment