From: Jason Stover Date: Sun, 30 Oct 2005 15:06:18 +0000 (+0000) Subject: Parameter estimate matched with appropriate variable during estimation X-Git-Tag: v0.6.0~1150 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7b5d9144738a5a8989d45a01f4e458a78b68c0b;p=pspp-builds.git Parameter estimate matched with appropriate variable during estimation --- diff --git a/lib/linreg/linreg.c b/lib/linreg/linreg.c index 85b302d1..2a8aff3f 100644 --- a/lib/linreg/linreg.c +++ b/lib/linreg/linreg.c @@ -172,6 +172,9 @@ pspp_linreg (const gsl_vector * Y, const gsl_matrix * X, 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;