/* PSPP - linear regression.
Copyright (C) 2005 Free Software Foundation, Inc.
- Written by Jason H Stover <jason@sakla.net>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
/*
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"));
for (i = 0; i < n_vars; i++)
{
- size_t n_categories = cat_get_n_categories (varlist[i]);
- size_t j;
+ int n_categories = cat_get_n_categories (varlist[i]);
+ int j;
fprintf (fp, "%s.name = \"%s\";\n\t",
var_get_name (varlist[i]),
val = case_data (&c, v);
cat_value_update (v, val);
- if (var_is_value_missing (v, val))
+ if (var_is_value_missing (v, val, MV_ANY))
{
if (!is_missing_case[row])
{