+2007-02-04 Jason Stover <jhs@math.gcsu.edu>
+
+ * regression.q: Fixed p-value computation in the test for
+ individual regression coefficients.
+
Mon Jan 15 11:03:20 2007 Ben Pfaff <blp@gnu.org>
Fix bugs found by valgrind when --enable-debug is used with the
/*
P values for the test statistic above.
*/
- pval = 2 * gsl_cdf_tdist_Q (fabs (t_stat), 1.0);
+ pval = 2 * gsl_cdf_tdist_Q (fabs (t_stat), (double) (c->n_obs - c->n_coeffs));
tab_float (t, 6, j + 1, 0, pval, 10, 2);
}
tab_title (t, _("Coefficients"));