Add ability for reverse iteration to tower code, and corresponding
[pspp] / src / math / linreg / predict.c
index ca96ab097e198d248e6aacf5a2208fd1ac808c3c..7f404fcf5e575ff212ae7520fc7370af71e17e41 100644 (file)
@@ -18,6 +18,7 @@
    Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
  */
 
+#include <config.h>
 #include <math/linreg/linreg.h>
 #include <math/coefficient.h>
 #include <gl/xalloc.h>
@@ -70,7 +71,7 @@ pspp_linreg_predict (const struct variable **predictors,
        {
          found[i] = coe;
          tmp = pspp_coeff_get_est (coe);
-         if (predictors[j]->type == NUMERIC)
+         if (var_is_numeric (predictors[j]))
            {
              tmp *= vals[j]->f;
            }