CROSSTABS: Fix confidence interval display for risk estimate output.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 16 Feb 2023 23:14:50 +0000 (15:14 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 16 Feb 2023 23:14:50 +0000 (15:14 -0800)
Bug #63747.

src/language/commands/crosstabs.c
tests/language/commands/crosstabs.at

index 0182ec8a9f6aa3feabb957f7fb789b17f79b81db..0762d0efb68316187d95d931967246cb5fc50723 100644 (file)
@@ -1974,7 +1974,7 @@ display_risk (struct crosstabulation *xt, struct pivot_table *risk,
         {
           indexes[0] = j;
           pivot_table_put (risk, indexes, risk->n_dimensions,
-                           pivot_value_new_number (entries[i]));
+                           pivot_value_new_number (entries[j]));
         }
     }
   indexes[1] = pivot_category_create_leaf (
index a26379e88af7337aa8cafbca9868414118fcd121..b5f037ca801371b0473d9629e2596bcc4638dac4 100644 (file)
@@ -1896,9 +1896,9 @@ N of Valid Cases,250,,,,
 Table: Risk Estimate
 ,Value,95% Confidence Interval,
 ,,Lower,Upper
-Odds Ratio for factor (Placebo / Aspirin),2.25,2.25,2.25
-For cohort disease = Yes,1.08,1.08,1.08
-For cohort disease = No,.99,.99,.99
+Odds Ratio for factor (Placebo / Aspirin),2.25,1.09,4.64
+For cohort disease = Yes,2.00,1.08,3.72
+For cohort disease = No,.89,.80,.99
 N of Valid Cases,250.00,,
 ])
 AT_CLEANUP