for (v = 0; v < cmd->n_vars; ++v)
{
- const struct interaction *inter = interaction_create (cmd->indep_var);
+ struct interaction *inter = interaction_create (cmd->indep_var);
ws.vws[v].cat = categoricals_create (&inter, 1, cmd->wv,
cmd->exclude, makeit, updateit,
CONST_CAST (struct variable *,
double std_err;
double weight_j, mean_j, var_j;
double half_range;
+ const struct ccase *cc;
struct descriptive_data *dd_j = categoricals_get_user_data_by_category (cat, j);
if (j == i)
continue;
ds_clear (&vstr);
- const struct ccase *cc = categoricals_get_case_by_category (cat, j);
+ cc = categoricals_get_case_by_category (cat, j);
var_append_value_name (cmd->indep_var, case_data (cc, cmd->indep_var), &vstr);
tab_text (t, 2, r + rx, TAB_LEFT | TAT_TITLE, ds_cstr (&vstr));
struct categoricals *
-categoricals_create (const struct interaction **inter, size_t n_inter,
+categoricals_create (struct interaction *const*inter, size_t n_inter,
const struct variable *wv, enum mv_class exclude,
user_data_create_func *udf,
update_func *update, void *aux1, void *aux2
iap->reverse_interaction_value_map = pool_calloc (cat->pool, iap->n_cats,
sizeof *iap->reverse_interaction_value_map);
-
HMAP_FOR_EACH (ivn, struct interaction_value, node, &iap->ivmap)
{
iap->reverse_interaction_value_map[x++] = ivn;
cat->reverse_variable_map_long[idx_long++] = i;
}
-
-
assert (cat->n_vars <= cat->n_iap);
}
typedef void *user_data_create_func (void *aux1, void *aux2);
-struct categoricals *categoricals_create (const struct interaction **, size_t n_int,
+struct categoricals *categoricals_create (struct interaction *const *, size_t n_int,
const struct variable *wv, enum mv_class exclude,
user_data_create_func *udf,
update_func *update, void *aux1, void *aux2);