From b9799cdd10b30ea96d9178b7a0d48504d052228c Mon Sep 17 00:00:00 2001 From: Jason Stover Date: Fri, 16 Dec 2005 15:44:33 +0000 Subject: [PATCH] Fixed assignment of the intercept --- lib/linreg/linreg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linreg/linreg.c b/lib/linreg/linreg.c index fb6bbc45..dc7f1d01 100644 --- a/lib/linreg/linreg.c +++ b/lib/linreg/linreg.c @@ -287,6 +287,7 @@ pspp_linreg (const gsl_vector * Y, const gsl_matrix * X, gsl_matrix_set (cache->cov, 0, 0, tmp); gsl_vector_set (cache->param_estimates, 0, m); + cache->coeff[0].estimate = m; } else { -- 2.30.2