Some progress on interpreting 31s and understanding footnotes.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 20 Oct 2014 04:21:05 +0000 (21:21 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 20 Oct 2014 04:21:05 +0000 (21:21 -0700)
31 [new file with mode: 0644]
dump.c
notes

diff --git a/31 b/31
new file mode 100644 (file)
index 0000000..f3d51e5
--- /dev/null
+++ b/31
@@ -0,0 +1,23 @@
+tdump9 (./williams/00000000033_lightTableData.bin):
+
+    03 "Statistics" 58 "statistics_10" "Statistics" 01 00 01 i2 01 00 01 i2 i4
+       03 "Count" 58 "count_6" "Count" i1 i2 00 00 00 00 00 00 00 00
+       03 "Expected Count" 58 "expected_count" "Expected Count" i1 i2 i1 i0 00
+       31 i0 i0 i26: (i20: (i0 31 "row % of ^1") 58 58) "% within ^1" i1 i0
+           05 58 "Q8New_4" "Q8_4 I think..." i2                            i2 i2 i0
+       03 "Adjusted Residual" 58 "adjusted_standardized_residual" "Adjusted Residual" i1 i2 i3 00 00 00 00 00 00 00 00 
+
+tdump15 (./williams/00000000032_lightTableData.bin):
+
+    03 "Crosstabulation" 58 "crosstabulation" "Crosstabulation" 01 00 00 i2 01 00 i1 00 i1
+       00 31 i0 i0 i27: (i21: (i0 31 "[%1: * ^1:]1") 58 58) "[%1: * ^1:]1"       i1 i2 i0
+           05 58 "Q8New_4" "Q8_4 I think..." i2 00
+           05 58 "Q8New_1" "Q8_1 It is a..." i2                                  i2 i0 i0
+
+tdump21 ./germano/Crosstabs/00000000016_lightTableData.bin:
+
+    03 "Statistics" 58 "statistics_10" "Statistics" 01 00 00 i2 01 00 i1 00 i1 00
+       31 00 00 00 00 00 00 00 00 i42: (i36: (i0 31 "Odds Ratio for ^1 (^2 / ^3)") 58 58) "Odds Ratio for ^1 (^2 / ^3)" i3 i0
+           05 58 "cond" i0 i3 00
+           02 58 F40.0(1) "cond" i0 i3 00
+           02 58 F40.0(2) "cond" i0 i3 i2 i0 i0
diff --git a/dump.c b/dump.c
index 30e34facaf00efcd2fe03470bbeae77df4ba1b28..ce87e86b2d9b396486b26aa86a9573c6dd36ea55 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -189,12 +189,17 @@ dump_category(int level)
       int subn;
 
       match_byte_assert (0x31);
       int subn;
 
       match_byte_assert (0x31);
-      get_u32 ();
-      get_u32 ();
+      match_u32_assert (0);
+      match_u32_assert (0);
       subn = get_u32 ();
       printf ("nested %d bytes", subn);
       pos += subn;
       printf ("; \"%s\"", get_string());
       subn = get_u32 ();
       printf ("nested %d bytes", subn);
       pos += subn;
       printf ("; \"%s\"", get_string());
+      fprintf (stderr, "got %02x\n", data[pos]);
+      match_byte (1);
+      match_byte (0);
+      match_byte (0);
+      match_byte (0);
       goto next;
     }
 
       goto next;
     }
 
diff --git a/notes b/notes
index bef6ec9e850dca9e14887ba1506edf3f2ff8fad7..499ba95cd24aed7274fc93cdd5bc3dce838ab93f 100644 (file)
--- a/notes
+++ b/notes
@@ -488,6 +488,35 @@ tdump5 (./williams/000000000135_lightTableData.bin):
        03 "Valid Percent" 58 "valid_percent" "Valid Percent" i1 i2 i2 00 00 00 00
        03 "Cumulative Percent" 58 "cumulative_percent" "Cumulative Percent" i1 i2 i3 i0
 
        03 "Valid Percent" 58 "valid_percent" "Valid Percent" i1 i2 i2 00 00 00 00
        03 "Cumulative Percent" 58 "cumulative_percent" "Cumulative Percent" i1 i2 i3 i0
 
+tdump9 (./williams/00000000033_lightTableData.bin):
+
+    i3
+
+    05 58 "Q8New_4" "Q8_4 I think..." 02 00 00 i2 01 00 i1 00 i2
+       05 58 "Q8New_4" "Q8_4 I think..." 02 00 00 i1 00 ff ff ff ff i5
+           02 58 F40.0(1) "Q8New_4" "Strongly disagree" i2 i2 00 00 00 00 00 00 00 00
+           02 58 F40.0(2) "Q8New_4" "Disgaree" i2 i2 i1 00 00 00 00
+           02 58 F40.0(3) "Q8New_4" "Neutral" i2 i2 i2 00 00 00 00
+           02 58 F40.0(4) "Q8New_4" "Agree" i2 i2 i3 00 00 00 00
+           02 58 F40.0(5) "Q8New_4" "Strongly agree" i2 i2 i4 00 00 00 00
+       03 "Total" 58 "total_4" "Total" i1 i2 i5 00 00 00 00
+
+    05 58 "Q8New_1" "Q8_1 It is a..." 02 00 00 i2 01 00 01 i1 i2
+       05 58 "Q8New_1" "Q8_1 It is a..." 02 00 00 i1 00 ff ff ff ff i5
+           02 58 F40.0(1) "Q8New_1" "Strongly disagree" i2 i2 00 00 00 00 00 00 00 00
+           02 58 F40.0(2) "Q8New_1" "Disgaree" i2 i2 i1 00 00 00 00
+           02 58 F40.0(3) "Q8New_1" "Neutral" i2 i2 i2 00 00 00 00
+           02 58 F40.0(4) "Q8New_1" "Agree" i2 i2 i3 00 00 00 00
+           02 58 F40.0(5) "Q8New_1" "Strongly agree" i2 i2 i4 00 00 00 00
+       03 "Total" 58 "total_4" "Total" i1 i2 i5 00 00 00 00
+
+    03 "Statistics" 58 "statistics_10" "Statistics" 01 00 01 i2 01 00 01 i2 i4
+       03 "Count" 58 "count_6" "Count" i1 i2 00 00 00 00 00 00 00 00
+       03 "Expected Count" 58 "expected_count" "Expected Count" i1 i2 i1 i0 00
+       31 i0 i0 i26: (i20: (i0 31 "row % of ^1") 58 58) "% within ^1" i1 i0
+           05 58 "Q8New_4" "Q8_4 I think..." i2                            i2 i2 i0
+       03 "Adjusted Residual" 58 "adjusted_standardized_residual" "Adjusted Residual" i1 i2 i3 00 00 00 00 00 00 00 00 
+
 tdump14 (./williams/00000000034_lightTableData.bin):
 
     i2
 tdump14 (./williams/00000000034_lightTableData.bin):
 
     i2
@@ -507,6 +536,24 @@ tdump14 (./williams/00000000034_lightTableData.bin):
        03 "Asymp. Sig. (2-sided)" 58 "asymptotic_significance" "Asymptotic Significance" i1 i2 i2 00 00 00 00
 
 
        03 "Asymp. Sig. (2-sided)" 58 "asymptotic_significance" "Asymptotic Significance" i1 i2 i2 00 00 00 00
 
 
+tdump15 (./williams/00000000032_lightTableData.bin):
+
+    i3
+
+    03 "Crosstabulation" 58 "crosstabulation" "Crosstabulation" 01 00 00 i2 01 00 i1 00 i1
+       00 31 i0 i0 i27: (i21: (i0 31 "[%1: * ^1:]1") 58 58) "[%1: * ^1:]1"       i1 i2 i0
+           05 58 "Q8New_4" "Q8_4 I think..." i2 00
+           05 58 "Q8New_1" "Q8_1 It is a..." i2                                  i2 i0 i0
+
+    03 "Statistics" 58 "statistics_10" "Statistics" 01 00 01 i2 01 00 01 i1 i2
+       03 "N" 58 "n" "N" i1 i2 00 00 00 00 00 00 00 00
+       03 "Percent" 58 "percent_2" "Percent" i1 i2 i1 00 00 00 00
+
+    03 "Cases" 58 "cases" "Cases" 01 00 01 i2 00 00 01 i2 i3
+       03 "Valid" 58 "valid" "Valid" i1 i2 00 00 00 00 00 00 00 00
+       03 "Missing" 58 "missing_observations" "Missing" i1 i2 i1 00 00 00 00
+       03 "Total" 58 "total_4" "Total" i1 i2 i2 i0
+
 tdump19:
 
     i3 (three dimensions)
 tdump19:
 
     i3 (three dimensions)
@@ -625,6 +672,19 @@ tdump25 (germano/Crosstabs.pdf):
         03 "Missing" 58 "missing_observations" "Missing" i1 i2 i1 i0
         03 "Total" 58 "total_4" "Total" i1 i2 i2 i0
 
         03 "Missing" 58 "missing_observations" "Missing" i1 i2 i1 i0
         03 "Total" 58 "total_4" "Total" i1 i2 i2 i0
 
+tdump21 ./germano/Crosstabs/00000000016_lightTableData.bin:
+
+i2
+
+    03 "Statistics" 58 "statistics_10" "Statistics" 01 00 00 i2 01 00 i1 00 i1 00
+       31 00 00 00 00 00 00 00 00 i42: (i36: (i0 31 "Odds Ratio for ^1 (^2 / ^3)") 58 58) "Odds Ratio for ^1 (^2 / ^3)" i3 i0
+           05 58 "cond" i0 i3 00
+           02 58 F40.0(1) "cond" i0 i3 00
+           02 58 F40.0(2) "cond" i0 i3 i2 i0 i0
+
+    03 "Values" 58 "values_10" "Values" 01 00 01 i2 01 00 01 i1 i1
+    03 "Value" 58 "value_18" "Value" i1 i2 00 00 00 00 00 00 00 00 00 00 00 00 i1 i1 00 00 00 00 i1 i1 00 00 00 00 00 00 00 00 i3 00 31 i1 00 00 00 00 00 00 i11 i5 00 00 00 00 58 58 58 00 00 00 00 00 00 00 00 00 
+
 tdump21 (germano/Crosstabs.pdf):
 
     i3 (three dimensions)
 tdump21 (germano/Crosstabs.pdf):
 
     i3 (three dimensions)
@@ -652,6 +712,33 @@ tdump21 (germano/Crosstabs.pdf):
         03 "Approx. T" 31 i1 i1 00 00 i11: (i5: ("" 58) 58 58) "approximate_t" "Approximate T" i1 i2 i2 00 00 00 00
         03 "Approx. Sig." 58 "approximate_probability" "Approximate Significance" i1 i2 i3 00 00 00 00 00 00 00 00 i2 i1 00 00 00 00 i1 i2 i44
 
         03 "Approx. T" 31 i1 i1 00 00 i11: (i5: ("" 58) 58 58) "approximate_t" "Approximate T" i1 i2 i2 00 00 00 00
         03 "Approx. Sig." 58 "approximate_probability" "Approximate Significance" i1 i2 i3 00 00 00 00 00 00 00 00 i2 i1 00 00 00 00 i1 i2 i44
 
+tdump22 ./germano/Crosstabs/00000000017_lightTableData.bin:
+
+This is a good example for footnotes: there are three footnotes in the table and two of them are referenced from the dimensions.
+
+    i2
+
+    03 "Statistics" 58 "statistics_10" "Statistics" 01 00 00 i2 01 00 i1 00 i5
+       03 "Nominal by Nominal" 58 "nominal_measures" "Nominal by Nominal" 01 00 00 01 i2 ff ff ff ff i3
+           03 "Phi" 58 "phi" "Phi" i1 i2 00 00 00 00 00 00 00 00
+           03 "Cramer's V" 58 "cramers_v" "Cramer's V" i1 i2 i1 00 00 00 00
+           03 "Contingency Coefficient" 58 "contingency_coefficient" "Contingency Coefficient" i1 i2 i2 00 00 00 00
+       03 "Ordinal by Ordinal" 58 "ordinal_measures" "Ordinal by Ordinal" 01 00 00 01 i2 ff ff ff ff i4
+           03 "Kendall's tau-b" 58 "kendalls_tau-b_1" "Kendall's tau-b" i1 i2 i3 00 00 00 00
+           03 "Kendall's tau-c" 58 "kendalls_tau-c" "Kendall's tau-c" i1 i2 i4 00 00 00 00 
+           03 "Gamma" 58 "gamma" "Gamma" i1 i2 i5 00 00 00 00
+           03 "Spearman Correlation" 58 "spearman_correlation" "Spearman Correlation" i1 i2 i7 00 00 00 00
+       03 "Interval by Interval" 58 00 00 00 00 "Interval by Interval" 01 00 00 01 i2 ff ff ff ff i1
+           03 "Pearson's R" 58 "pearson_correlation_coefficient" "Pearson's R" i1 i2 i6 00 00 00 00
+       03 "Measure of Agreement" 58 "other" "Measure of Agreement" 01 00 00 01 i2 ff ff ff ff i1
+           03 "Kappa" 58 "kappa" "Kappa" i1 i2 i8 00 00 00 00
+       03 "N of Valid Cases" 58 "valid" "N of Valid Cases" i1 i2 i9 00 00 00 00
+
+       03 "Values" 58 "values_10" "Values" 01 00 01 i2 01 00 01 i1 i4
+           03 "Value" 58 "value_18" "Value" i1 i2 00 00 00 00 00 00 00 00
+           03 "Asymp. Std. Error" 31 i1 i0 00 00 i11: (i5: (i0 58) 58 58) "ase" "Asymptotic Std. Error" i1 i2 i1 00 00 00 00
+           03 "Approx. T"         31 i1 i1 00 00 i11: (i5: (i0 58) 58 58) "approximate_t" "Approximate T" i1 i2 i2 00 00 00 00 
+           03 "Approx. Sig." 58 "approximate_probability" "Approximate Significance" i1 i2 i3 i0 i0
 
 Data: tdump21 (germano/Crosstabs.pdf)
 -------------
 
 Data: tdump21 (germano/Crosstabs.pdf)
 -------------