+2006-04-19 Jason Stover <jhs@math.gcsu.edu>
+
+ * regression.q (regression_trns_proc): Fixed the look-up of the
+ number of variables.
+
2006-04-18 Jason Stover <jhs@math.gcsu.edu>
* regression.q (regression_trns_proc): Look up the residual
assert (model->depvar != NULL);
assert (model->resid != NULL);
- vals = xnmalloc (n_variables, sizeof (*vals));
dict_get_vars (default_dict, &vars, &n_vars, 1u << DC_ORDINARY);
+ vals = xnmalloc (n_vars, sizeof (*vals));
+ assert (vals != NULL);
output = case_data_rw (c, model->resid->fv);
assert (output != NULL);
for (i = 0; i < n_vars; i++)
{
- /* Do not use the residual variable as a predictor. */
+ /* Do not use the residual variable. */
if (vars[i]->index != model->resid->index)
{
/* Do not use the dependent variable as a predictor. */