Fixed a bug in the Mann-Whitney test vs. missing=analysis.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 7 Mar 2017 05:31:49 +0000 (06:31 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 7 Mar 2017 05:31:49 +0000 (06:31 +0100)
commitc875597832d56353461bafd46e268f0ba5fbb5da
treee69aca962d858e192e8b3c5136390c13f4677c1b
parent3db3eb092e5ea941d815e6377ecdb5ea260a5a25
Fixed a bug in the Mann-Whitney test vs. missing=analysis.

When missing values were deleted from the dataset, they were deleted after the
ranks for the U value had been inserted, - thus the wrong rank sum would be
calculated.  This change deletes missing values *before* the ranks are inserted.

The issue this fixes is described at
http://lists.gnu.org/archive/html/pspp-users/2017-03/msg00009.html
NEWS
src/language/stats/mann-whitney.c
tests/automake.mk
tests/language/mann-whitney.txt [new file with mode: 0644]
tests/language/stats/npar.at