Eliminate temp_case, and a few other cleanups.
[pspp] / src / t-test.h
index 8a72fb9ddd0ca7bf77af532dd985a0df9cb0382c..ad1d45cafa48ad18cd0dab176f8521abdbc62a70 100644 (file)
 #ifndef T_TEST_H
 #define T_TEST_H
 
-/* T-TEST private data */
-struct t_test_proc
+#include "val.h"
+
+/* Statistics for grouped data */
+struct group_statistics
   {
+    /* The value of the independent variable for this group */
+    union value id;
+
+    /* The arithmetic mean */
     double mean;
 
     /* Population std. deviation */
@@ -42,11 +48,35 @@ struct t_test_proc
     /* Std Err of Mean */
     double se_mean;
 
-    /* Sum of differnces */
+    /* Sum of differences */
     double sum_diff;
 
     /* Mean of differences */
     double mean_diff ;
+
+    /* Running total of the Levene for this group */
+    double lz_total;
+    
+    /* Group mean of Levene */
+    double lz_mean; 
+
   };
 
+
+/* T-TEST private data */
+struct t_test_proc
+{
+  /* Stats for the `universal group' */
+  struct group_statistics ugs;
+
+  /* Number of groups */
+  int n_groups ;
+
+  /* Stats for individual groups */
+  struct group_statistics *gs;
+
+  /* The levene statistic */
+  double levene ;
+};
+
 #endif