/* Identify the explanatory variables in v_variables. Returns
the number of independent variables. */
static int
-identify_indep_vars (struct variable **indep_vars, struct variable *depvar)
+identify_indep_vars (const struct variable **indep_vars, const struct variable *depvar)
{
int n_indep_vars = 0;
int i;
Returns number of valid cases. */
static int
prepare_categories (struct casereader *input,
- struct variable **vars, size_t n_vars,
+ const struct variable **vars, size_t n_vars,
struct moments_var *mom)
{
int n_data;
for (k = 0; k < cmd->n_dependent; k++)
{
- struct variable *dep_var;
+ const struct variable *dep_var;
struct casereader *reader;
casenumber row;
struct ccase c;
{
for (i = 0; i < n_indep; ++i)
{
- struct variable *v = indep_vars[i];
+ const struct variable *v = indep_vars[i];
const union value *val = case_data (&c, v);
if (var_is_alpha (v))
design_matrix_set_categorical (X, row, v, val);