From: John Darrington Date: Wed, 4 Feb 2004 12:22:38 +0000 (+0000) Subject: Fixed bug calculating mean difference. X-Git-Tag: sav-api~2612 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaa565535e0fd686483acad6026fe47005aca4ae;p=pspp Fixed bug calculating mean difference. --- diff --git a/src/t-test.q b/src/t-test.q index 34c3f07842..1df4581a8b 100644 --- a/src/t-test.q +++ b/src/t-test.q @@ -1039,7 +1039,7 @@ one_sample_calc (struct ccase *c) ttp= &cmd.v_variables[i]->p.t_t; if (val->f != SYSMIS) - ttp->sum_diff += weight * fabs(val->f - cmd.n_testval); + ttp->sum_diff += weight * (val->f - cmd.n_testval); } return 0;