### Troubleshooting

## Problem

I have a variable for which I want to test location using a one-sample Wilcoxon test. I don't see a way to produce a one-sample Wilcoxon test in SPSS. Can this be done?

## Resolving The Problem

To obtain a one-sample Wilcoxon test in SPSS Statistics, specify Analyze>Nonparametric Tests>One Sample. On the Objective tab specify Customize analysis. On the Fields tab specify the variable(s) for which the one-sample Wilcoxon test is desired. On the Settings tab specify Customize tests, check the box for Compare median to hypothesized (Wilcoxon signed-rank test), specify the Hypothesized median value and click OK.

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).

## Related Information

## Historical Number

67055

## Was this topic helpful?

### Document Information

**Modified date:**

16 April 2020

## UID

swg21478980