Extended the glm command to accept interactions. Unfortunately the ssqs are wrong
[pspp-builds.git] / src / math / categoricals.h
index d9ac1f5efe6c17dfdd347733e453b252c092feea..ef9c37c2c8f1f26ad9aa3d5e1b14431cd27c3912 100644 (file)
@@ -50,9 +50,14 @@ void categoricals_update (struct categoricals *cat, const struct ccase *c);
 /* Return the number of categories (distinct values) for variable N */
 size_t categoricals_n_count (const struct categoricals *cat, size_t n);
 
+size_t categoricals_df (const struct categoricals *cat, size_t n);
 
 /* Return the total number of categories */
-size_t categoricals_total (const struct categoricals *cat);
+size_t categoricals_n_total (const struct categoricals *cat);
+
+/* Return the total degrees of freedom */
+size_t categoricals_df_total (const struct categoricals *cat);
+
 
 /*
   Return the total number of variables which participated in these categoricals.