节作者:Rebecca Vederhus, Sebastian Jentschke

From SPSS to jamovi: Non-parametric analyses

This comparison shows how a Mann-Whitney test is conducted in SPSS and jamovi. The SPSS test follows the description in chapter 7.4.3 in Field (2017), especially figure 7.6 - 7.8 and output 7.2. It uses the data set Drug.sav which can be downloaded from the web page accompanying the book.
SPSS jamovi
In SPSS, a Mann-Whitney test can be run using: AnalyzeNonparametric Tests `` ``Independent Samples. In jamovi this is done using the following steps: AnalysesT-testsIndependent Samples T-Test.
SPSS_Menu_nonParametric1 jamovi_Menu_nonParametric1
In SPSS, choose Fields from the menu. Then, click Use custom field assignments and move the variables Sunday_BDI and Wednesday_BDI to Test Fields, and the variable Drug to Groups. In jamovi, move Sunday_BDI and Wednesday_BDI to the Dependent Variables variable box, and Drug to the Grouping Variable box. Then, tick the box for Mann-Whitney U.
SPSS_Input_nonParametric1_1 jamovi_Input_nonParametric1
Open the Settings window, and click Customize tests. Tick the box for Mann-Whitney U (2 samples).  
SPSS_Input_nonParametric1_2  
By comparing the output from SPSS and jamovi, you can tell that some of the results are the same. The results in jamovi are presented in a single table, while in SPSS you have to double-click the table in order to get the rest of the results.  

SPSS_Output_nonParametric1_1

SPSS_Output_nonParametric1_2

SPSS_Output_nonParametric1_3

jamovi_Output_nonParametric1
In SPSS, the first table is the Hypothesis Test Summary, which only shows the significance value. If you double-click this table you open the model viewer window, which contains the details of the analysis. To view the results for the Wednesday sample, select Beck Depression Inventory (Wednesday) \* Type of Drug(Test 2) in the drop-down menu next to Field(s). In jamovi, results are presented in the Independent Samples T-Test table. Here the U-value is found in the first column, and its significance level in the second column.

The output in jamovi only presents the Mann-Whitney U statistic and its significance value, while SPSS presents values for Mean Rank, N, Total N, Wilcoxon W, Test Statistic, Standard Error, Standardized Test Statistic and Asymptotic Sig. (2-sided test).

The numerical values for the Wednesday group are the same in SPSS and jamovi (U = 4.00, p < .001), while the values for the Sunday group differ slightly (U = 35.50, p = .280 vs. p = .286). The reason for the difference is that jamovi applies continuity correction (where a discrete distribution – ranks – is approximated via a continuous one – the standard normal distribution) whereas SPSS doesn’t.

If you wish to replicate those analyses using syntax, you can use the commands below (in jamovi, just copy to code below to Rj). Alternatively, you can download the SPSS output files and the jamovi files with the analyses from below the syntax.
NPTESTS
  /INDEPENDENT TEST (Sunday_BDI Wednesday_BDI) GROUP (Drug) MANN_WHITNEY
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05 CILEVEL=95.
jmv::ttestIS(
    formula = Sunday_BDI + Wednesday_BDI ~ Drug,
    data = data,
    students = FALSE,
    mann = TRUE)
SPSS output file containing the analyses jamovi file with the analyses
References
Field, A. (2017). Discovering statistics using IBM SPSS statistics (5th ed.). SAGE Publications. https://edge.sagepub.com/field5e