fixed check for equality of explanatory and predictor variables
[pspp-builds.git] / src / language / stats / regression.q
index 86d102d7c7037166752a9570d2d547c09016180a..92afb378cea85c45d308d7a38845d2640cb80d68 100644 (file)
@@ -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