projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply UNUSED and include additional headers to avoid complaints from
[pspp]
/
src
/
language
/
stats
/
regression.q
diff --git
a/src/language/stats/regression.q
b/src/language/stats/regression.q
index c779ae1e43a8e407c353728887843e9d3fcd9132..4679d075eb638cb7a5cabeae4028ec8e19318e30 100644
(file)
--- a/
src/language/stats/regression.q
+++ b/
src/language/stats/regression.q
@@
-1,6
+1,5
@@
/* PSPP - linear regression.
Copyright (C) 2005 Free Software Foundation, Inc.
/* 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
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@
-270,7
+269,7
@@
reg_stats_coeff (pspp_linreg_cache * c)
/*
P values for the test statistic above.
*/
/*
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"));
tab_float (t, 6, j + 1, 0, pval, 10, 2);
}
tab_title (t, _("Coefficients"));
@@
-766,8
+765,8
@@
reg_print_categorical_encoding (FILE * fp, pspp_linreg_cache * c)
for (i = 0; i < n_vars; i++)
{
for (i = 0; i < n_vars; i++)
{
-
size_
t n_categories = cat_get_n_categories (varlist[i]);
-
size_
t j;
+
in
t n_categories = cat_get_n_categories (varlist[i]);
+
in
t j;
fprintf (fp, "%s.name = \"%s\";\n\t",
var_get_name (varlist[i]),
fprintf (fp, "%s.name = \"%s\";\n\t",
var_get_name (varlist[i]),
@@
-979,7
+978,7
@@
mark_missing_cases (const struct casefile *cf, struct variable *v,
val = case_data (&c, v);
cat_value_update (v, val);
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])
{
{
if (!is_missing_case[row])
{