From: Jason H Stover Date: Thu, 11 Jun 2009 15:31:40 +0000 (-0400) Subject: Fixed crash caused by regressing with categorical variables X-Git-Tag: build37~73 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41090e60994244efa6a2beff47802274dc289736;p=pspp-builds.git Fixed crash caused by regressing with categorical variables --- diff --git a/src/language/stats/regression.q b/src/language/stats/regression.q index 05c08dfa..14d4b841 100644 --- a/src/language/stats/regression.q +++ b/src/language/stats/regression.q @@ -947,7 +947,7 @@ run_regression (struct casereader *input, struct cmd_regression *cmd, lopts.get_indep_mean_std[i] = 1; } models[k] = pspp_linreg_cache_alloc (dep_var, (const struct variable **) indep_vars, - X->m->size1, X->m->size2); + X->m->size1, n_indep); models[k]->depvar = dep_var; /* For large data sets, use QR decomposition.