Fixed bug reporting the significance of paired value t-test.
[pspp-builds.git] / src / language / stats / t-test.q
index 40bf97788b35e157082ebaf37a460f5216946c7c..c69a6cdb5bc5adb552afedbc209030d6ada3b12b 100644 (file)
@@ -1279,7 +1279,7 @@ trbox_paired_populate (struct trbox *trb,
       tab_double (trb->t, 8, i+3, TAB_RIGHT, df, wfmt);
 
       p = gsl_cdf_tdist_P (t,df);
-      q = gsl_cdf_tdist_P (t,df);
+      q = gsl_cdf_tdist_Q (t,df);
 
       tab_double (trb->t, 9, i+3, TAB_RIGHT, 2.0* (t>0?q:p), NULL);