Change how checking for missing values works.
[pspp] / src / language / stats / t-test-indep.c
index ffa2380bb2b1e6125e110787e57cf049057dad12..3bfc7775cc5698dcd3bb95090c59705561817368 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011, 2020 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -112,7 +112,7 @@ indep_run (struct tt *tt, const struct variable *gvar,
       for (v = 0; v < tt->n_vars; ++v)
        {
          const union value *val = case_data (c, tt->vars[v]);
-         if (var_is_value_missing (tt->vars[v], val, tt->exclude))
+         if (var_is_value_missing (tt->vars[v], val) & tt->exclude)
            continue;
 
          moments_pass_one (ps[v].mom[grp], val->f, w);
@@ -135,7 +135,7 @@ indep_run (struct tt *tt, const struct variable *gvar,
       for (v = 0; v < tt->n_vars; ++v)
        {
          const union value *val = case_data (c, tt->vars[v]);
-         if (var_is_value_missing (tt->vars[v], val, tt->exclude))
+         if (var_is_value_missing (tt->vars[v], val) & tt->exclude)
            continue;
 
          moments_pass_two (ps[v].mom[grp], val->f, w);
@@ -158,7 +158,7 @@ indep_run (struct tt *tt, const struct variable *gvar,
       for (v = 0; v < tt->n_vars; ++v)
        {
          const union value *val = case_data (c, tt->vars[v]);
-         if (var_is_value_missing (tt->vars[v], val, tt->exclude))
+         if (var_is_value_missing (tt->vars[v], val) & tt->exclude)
            continue;
 
          levene_pass_three (ps[v].nl, val->f, w, gv);
@@ -269,6 +269,7 @@ indep_test (const struct tt *tt, const struct pair_stats *ps)
     N_("Mean Difference"), PIVOT_RC_OTHER,
     N_("Std. Error Difference"), PIVOT_RC_OTHER);
   pivot_category_create_group (
+    /* xgettext:no-c-format */
     group, N_("95% Confidence Interval of the Difference"),
     N_("Lower"), PIVOT_RC_OTHER,
     N_("Upper"), PIVOT_RC_OTHER);