- linreg_mean_std (gsl_matrix_const_column (X, i), &m, &s, &ss);
- gsl_vector_set (cache->indep_means, i, m);
- gsl_vector_set (cache->indep_std, i, s);
+ linreg_mean_std (gsl_matrix_const_column (dm->m, i), &m, &s, &ss);
+ v = design_matrix_col_to_var (dm, i);
+ val = NULL;
+ if (var_is_alpha (v))
+ {
+ j = i - design_matrix_var_to_column (dm, v);
+ val = cat_subscript_to_value (j, v);
+ }
+ coef = pspp_linreg_get_coeff (cache, v, val);
+ pspp_coeff_set_mean (coef, m);
+ pspp_coeff_set_sd (coef, s);