Removed use of coefficient 0 as intercept; removed subcommand EXPORT.
[pspp-builds.git] / src / math / linreg / linreg.h
index d09752a21b50e272663039fcdcedb9b0c26480af..a7d408af56bde0c605c648963882545d9bec2967 100644 (file)
@@ -95,7 +95,8 @@ struct pspp_linreg_cache_struct
 {
   int n_obs;                   /* Number of observations. */
   int n_indeps;                        /* Number of independent variables. */
-  int n_coeffs;
+  int n_coeffs;                 /* The intercept is not considered a
+                                  coefficient here. */
 
   /*
      The variable struct is ignored during estimation. It is here so
@@ -105,6 +106,7 @@ struct pspp_linreg_cache_struct
 
   gsl_vector *residuals;
   struct pspp_coeff **coeff;
+  double intercept;
   int method;                  /* Method to use to estimate parameters. */
   /*
      Means and standard deviations of the variables.