From 94d6bf282238ff6f4d4f354624cc3cffa2468882 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 19 Oct 2014 21:21:05 -0700 Subject: [PATCH] Some progress on interpreting 31s and understanding footnotes. --- 31 | 23 ++++++++++++++++ dump.c | 9 ++++-- notes | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 31 diff --git a/31 b/31 new file mode 100644 index 0000000000..f3d51e5b8a --- /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 30e34facaf..ce87e86b2d 100644 --- a/dump.c +++ b/dump.c @@ -189,12 +189,17 @@ dump_category(int level) 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()); + fprintf (stderr, "got %02x\n", data[pos]); + match_byte (1); + match_byte (0); + match_byte (0); + match_byte (0); goto next; } diff --git a/notes b/notes index bef6ec9e85..499ba95cd2 100644 --- 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 +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 @@ -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 +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) @@ -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 +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) @@ -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 +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) ------------- -- 2.30.2