From: Jason Stover Date: Wed, 9 Apr 2008 03:31:41 +0000 (+0000) Subject: fixed check for equality of explanatory and predictor variables X-Git-Tag: v0.6.0~40 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1861ea4c715dfaddd84ff14be2ab92b13379014;p=pspp-builds.git fixed check for equality of explanatory and predictor variables --- diff --git a/src/language/stats/ChangeLog b/src/language/stats/ChangeLog index 92a01000..0b6d4e36 100644 --- a/src/language/stats/ChangeLog +++ b/src/language/stats/ChangeLog @@ -1,3 +1,8 @@ +2008-04-08 Jason Stover + + * regression.q (identify_indep_vars): Don't panic unless + n_indep_vars is 0. + 2008-03-16 Ben Pfaff Bug #22037. Thanks to John Darrington for reporting this bug. diff --git a/src/language/stats/regression.q b/src/language/stats/regression.q index 86d102d7..92afb378 100644 --- a/src/language/stats/regression.q +++ b/src/language/stats/regression.q @@ -797,7 +797,7 @@ identify_indep_vars (const struct variable **indep_vars, for (i = 0; i < n_variables; i++) if (!is_depvar (i, depvar)) indep_vars[n_indep_vars++] = v_variables[i]; - if ((n_indep_vars < 2) && is_depvar (0, depvar)) + if ((n_indep_vars < 1) && is_depvar (0, depvar)) { /* There is only one independent variable, and it is the same