X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Ft-test-indep.c;h=3bfc7775cc5698dcd3bb95090c59705561817368;hb=3f3b74c2dd0e8468e11b0bb22366f6081ba0d459;hp=b4cb430f198250625a93c0f9334f3b0e07506ce4;hpb=96994a54e60e9c95b8bba54c2281acf7059b1203;p=pspp diff --git a/src/language/stats/t-test-indep.c b/src/language/stats/t-test-indep.c index b4cb430f19..3bfc7775cc 100644 --- a/src/language/stats/t-test-indep.c +++ b/src/language/stats/t-test-indep.c @@ -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 @@ -82,7 +82,7 @@ indep_run (struct tt *tt, const struct variable *gvar, struct ccase *c; struct casereader *r; - struct pair_stats *ps = xcalloc (tt->n_vars, sizeof *ps); + struct pair_stats *ps = XCALLOC (tt->n_vars, struct pair_stats); int v; @@ -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);