ONEWAY /POSTHOC: Annotate output with dependent variable
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 31 Mar 2013 17:27:34 +0000 (19:27 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 31 Mar 2013 17:27:34 +0000 (19:27 +0200)
The Multiple Comparisons table did not specify the variable to which it refered.  This could be confusing
if more than one variable was specified.
Fixes bug #38635

src/language/stats/oneway.c
tests/language/stats/oneway.at

index 735c6d441cc8eda8c956b70ba4d487c5a6d1e754..9d31b4201f20ca2c0d552a110e74c2d2ff69aad9 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 1997-9, 2000, 2007, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1997-9, 2000, 2007, 2009, 2010, 2011, 2012, 2013 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
@@ -1569,7 +1569,7 @@ show_comparisons (const struct oneway_spec *cmd, const struct oneway_workspace *
 
   tab_vline (t, TAL_2, heading_cols, 0, n_rows - 1);
 
-  tab_title (t, _("Multiple Comparisons"));
+  tab_title (t, _("Multiple Comparisons (%s)"), var_to_string (cmd->vars[v]));
 
   tab_text_format (t,  1, 1, TAB_LEFT | TAT_TITLE, _("(I) %s"), var_to_string (cmd->indep_var));
   tab_text_format (t,  2, 1, TAB_LEFT | TAT_TITLE, _("(J) %s"), var_to_string (cmd->indep_var));
index dfb43bbe909bafafbae78cb46f7a31eea9dc3029..2eeb22e843e65c84fd864d14091c93bde9b1d26f 100644 (file)
@@ -602,7 +602,7 @@ pigmentation,Between Groups,478.950,3,159.650,12.927,.000
 ,Within Groups,197.600,16,12.350,,
 ,Total,676.550,19,,,
 
-Table: Multiple Comparisons
+Table: Multiple Comparisons (pigmentation)
 ,,,Mean Difference,,,95% Confidence Interval,
 ,(I) family,(J) family,(I - J),Std. Error,Sig.,Lower Bound,Upper Bound
 LSD,1.000,2.000,-7.400,2.223,.004,-12.112,-2.688
@@ -671,7 +671,7 @@ libido,Between Groups,20.133,2,10.067,5.119,.025
 ,Within Groups,23.600,12,1.967,,
 ,Total,43.733,14,,,
 
-Table: Multiple Comparisons
+Table: Multiple Comparisons (libido)
 ,,,Mean Difference,,,95% Confidence Interval,
 ,(I) Dose of Viagra,(J) Dose of Viagra,(I - J),Std. Error,Sig.,Lower Bound,Upper Bound
 Tukey HSD,Placebo,1 Dose,-1.000,.887,.516,-3.366,1.366
@@ -731,7 +731,7 @@ score,Between Groups,54.9500,3,18.3167,7.0449,.0031
 ,Within Groups,41.6000,16,2.6000,,
 ,Total,96.5500,19,,,
 
-Table: Multiple Comparisons
+Table: Multiple Comparisons (score)
 ,,,Mean Difference,,,95% Confidence Interval,
 ,(I) program,(J) program,(I - J),Std. Error,Sig.,Lower Bound,Upper Bound
 Šidák,1.0000,2.0000,3.0000,1.0198,.0561,-.0575,6.0575
@@ -812,7 +812,7 @@ Days of Use,Between Groups,555.275,3,185.092,6.663,.001
 ,Within Groups,1000.100,36,27.781,,
 ,Total,1555.375,39,,,
 
-Table: Multiple Comparisons
+Table: Multiple Comparisons (Days of Use)
 ,,,Mean Difference,,,95% Confidence Interval,
 ,(I) group,(J) group,(I - J),Std. Error,Sig.,Lower Bound,Upper Bound
 Scheffé,one,two,3.800,2.357,.467,-3.112,10.712