return NULL;
}
}
+
+/*
+ Return the number of categories of a categorical variable.
+ */
+size_t
+cat_get_n_categories (const struct variable *v)
+{
+ return v->obs_vals->n_categories;
+}
+
#include "cat-routines.h"
struct design_matrix_var
{
- int first_column; /* First column for this variable in
+ size_t first_column; /* First column for this variable in
the design_matix. If this variable
is categorical, its values are
stored in multiple, contiguous
encoding in the variable's struct
cat_vals.
*/
- int last_column;
+ size_t last_column;
const struct variable *v;
};
struct design_matrix