V的值并不是正分的个数,而是这些正分的总和。
此外,该测试未提供对负分数总和的测量。以下示例中提供了用于计算正分数和负分数总和的简短脚本:
a <- c(214, 159, 169, 202, 103, 119, 200, 109, 132, 142, 194, 104, 219, 119, 234)
b <- c(159, 135, 141, 101, 102, 168, 62, 167, 174, 159, 66, 118, 181, 171, 112)
diff <- c(a - b) #calculating the vector containing the differences
diff <- diff[ diff!=0 ] #delete all differences equal to zero
diff.rank <- rank(abs(diff)) #check the ranks of the differences, taken in absolute
diff.rank.sign <- diff.rank * sign(diff) #check the sign to the ranks, recalling the signs of the values of the differences
ranks.pos <- sum(diff.rank.sign[diff.rank.sign > 0]) #calculating the sum of ranks assigned to the differences as a positive, ie greater than zero
ranks.neg <- -sum(diff.rank.sign[diff.rank.sign < 0]) #calculating the sum of ranks assigned to the differences as a negative, ie less than zero
ranks.pos #it is the value V of the wilcoxon signed rank test
[1] 80
ranks.neg
[1] 40
学分:https://www.r-bloggers.com/wilcoxon-signed-rank-test/
(它们还为它提供了一个很好的上下文。)
您还可以将这两个数字与它们的平均值(在本例中为 60)进行比较,这将是每一边的预期值,即正数总和为 60,负数总和为 60 表示两侧完全等价。正秩和 80 和负秩和 40 也可以被认为是等价的吗? (即,我们能否将这种“20”的差异归因于随机原因,或者这是否足以让我们拒绝无差异的假设?)
因此,正如他们所解释的,这种情况的临界区间是 [25,95]。检查表上的 Wilcoxon 秩符号检验的临界值,此示例的临界值为 25(双尾检验中 5% 的 15 对;并且 120-25 = 95...)。这意味着区间 [40,80] 不够“大”,无法排除差异纯粹是由于随机抽样造成的可能性。 (始终如一地,p 值高于 alpha)。
比较正分之和与负分之和有助于确定差异的显着性,从而丰富分析。此外,正等级本身是用于计算检验 p 值的输入,因此对它们的兴趣。
但要从简单报告的正等级 (V) 总和中提取意义,我认为这并不简单。在提供信息方面,我认为至少也要检查负面排名的总和,以便对正在发生的事情有一个更一致的想法。 (当然,还有一般信息,例如样本量、p 值等)。