pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/lib/linreg/linreg.c


From: Jason H Stover
Subject: [Pspp-cvs] Changes to pspp/lib/linreg/linreg.c
Date: Sun, 30 Oct 2005 10:06:19 -0500

Index: pspp/lib/linreg/linreg.c
diff -u pspp/lib/linreg/linreg.c:1.4 pspp/lib/linreg/linreg.c:1.5
--- pspp/lib/linreg/linreg.c:1.4        Fri Oct 28 20:52:37 2005
+++ pspp/lib/linreg/linreg.c    Sun Oct 30 15:06:18 2005
@@ -172,6 +172,9 @@
   cache->dft = cache->n_obs - 1;
   cache->dfm = cache->n_indeps;
   cache->dfe = cache->dft - cache->dfm;
+  cache->n_coeffs = X->size2 + 1; /* Adjust this later to allow for regression
+                                    through the origin.
+                                 */
   if (cache->method == PSPP_LINREG_SWEEP)
     {
       gsl_matrix *sw;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]