Removed use of coefficient 0 as intercept; removed subcommand EXPORT.
[pspp-builds.git] / src / math / linreg / linreg.h
index f256ef9d3fca6ea7f208022d258a7a605f16568c..a7d408af56bde0c605c648963882545d9bec2967 100644 (file)
@@ -27,8 +27,9 @@ union value;
 
 enum
 {
+  PSPP_LINREG_CONDITIONAL_INVERSE,
+  PSPP_LINREG_QR,
   PSPP_LINREG_SWEEP,
-  PSPP_LINREG_SVD
 };
 
 
@@ -94,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
@@ -104,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.