PSPP:如何针对单个参考值执行 Wilcoxon 检验

PSPP: How can I perform a Wilcoxon test against a single reference value

我正在使用 PSPP 并想将样本的中值与给定的中值进行比较,但我找到的所有选项都是将两个变量相互比较。我已经通过定义一个填充了我的参考值的变量来尝试解决方法:

NPAR 测试 /Wilcoxon [我的实际数据集的变量] WITH [用我的参考值填充的变量].

NPAR 测试 /SIGN [我的实际数据集的变量] WITH [用我的参考值填充的变量].

但这是 a) 一个狡猾的解决方法,b) 结果与我使用 SPSS 获得的 Wilcoxon 测试结果相去甚远。

正确的语法或更好的解决方法是什么?

据我所知,PSPP 没有直接实现这一点,但是您与将常数值设置为中位数的样本进行比较的解决方法似乎是正确的,而不是“狡猾的解决方法”。

这在IBM answer to the same question regarding SPSS中得到证实:

The one-sample Wilcoxon test can also be handled as a special case of the Wilcoxon matched pairs test, with the second variable being a constant value equal to the null hypothesized value against which you want to test. Simply compute a constant variable, then use that along with your variable of interest in the paired samples test. For a discussion of why this is legitimate, refer to a nonparametric statistics text such as Section 5.1 of W. J. Conover's (1971) Practical Nonparametric Statistics (Wiley).

我无法访问该教科书来检查他们的答案,但无论如何我认为 IBM 是一个可靠的来源。我不知道为什么您使用此方法会发现不同的结果,当我尝试时它似乎表现正确:也许仔细检查您在 SPSS 和 PSPP 下以相同的方式输入数据?