X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Ft-test.q;h=9691578e7fdd6835e1cd980435f7af6903b3584b;hb=6f422d9a7e709779c5ba8d1589fe294849dd38e8;hp=2e14632dc9b4f698b3fec8e2cf2c63331b81a5f1;hpb=baf657198fcf0cabe289246dc07a82da67c86f5b;p=pspp-builds.git diff --git a/src/language/stats/t-test.q b/src/language/stats/t-test.q index 2e14632d..9691578e 100644 --- a/src/language/stats/t-test.q +++ b/src/language/stats/t-test.q @@ -736,8 +736,8 @@ ssbox_independent_samples_populate(struct ssbox *ssb, if (gp.criterion == CMP_LE ) { - strcpy(prefix[0],"< "); - strcpy(prefix[1],">="); + strcpy(prefix[0],">="); + strcpy(prefix[1],"<"); indep_value[0] = gp.v.critical_value; indep_value[1] = gp.v.critical_value; } @@ -785,13 +785,13 @@ ssbox_independent_samples_populate(struct ssbox *ssb, { if ( count == 0 ) { - /* less than ( < ) case */ - search_val.f = gp.v.critical_value - 1.0; + /* >= case */ + search_val.f = gp.v.critical_value + 1.0; } else { - /* >= case */ - search_val.f = gp.v.critical_value + 1.0; + /* less than ( < ) case */ + search_val.f = gp.v.critical_value - 1.0; } } else @@ -1688,7 +1688,6 @@ group_precalc (struct cmd_t_test *cmd ) } hsh_insert ( ttpr->group_hash, (void *) gs ); - } } @@ -1867,7 +1866,7 @@ compare_group_binary(const struct group_statistics *a, if ( p->criterion == CMP_LE ) { - /* less-than-or-equal comparision is not meaningfull for + /* less-than comparision is not meaningfull for alpha variables, so we shouldn't ever arrive here */ assert(p->indep_width == 0 ) ;