- /* Use neither the predicted values nor the dependent variable. */
- if (vars[i]->index != model->pred->index &&
- vars[i]->index != model->depvar->index)
- {
- if (vars[i]->type == ALPHA && vars[i]->obs_vals != NULL)
- {
- tmp = vars[i]->obs_vals->vals;
- }
- else
- {
- tmp = NULL;
- }
- /*
- Make sure the variable we use is in the linear model.
- */
- if (pspp_linreg_get_coeff (model, vars[i], tmp) != NULL)
- {
- vals[n_vals] = case_data (c, i);
- model_vars[n_vals] = vars[i];
- n_vals++;
- }
- }