Skip to content

Commit

Permalink
Bugfix #2958 main_v11.1 BAGSS SEDI CI (#2960)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway authored Sep 5, 2024
1 parent 930d8cd commit c65c102
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcode/vx_statistics/contable_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ double TTContingencyTable::bagss() const {
ha = (double) oy() - (fy_on() / lf) * lw;
}

num = ha - (oy() * oy() / n());
den = 2.0*oy() - ha - (oy() * oy() / n());
num = ha - ((double) oy() * oy() / n());
den = 2.0*oy() - ha - ((double) oy() * oy() / n());

if(is_eq(den, 0.0)) v = bad_data_double;
else v = num/den;
Expand Down Expand Up @@ -698,7 +698,7 @@ double TTContingencyTable::sedi_ci(double alpha,
double &cl, double &cu) const {
double v, h, f, b, se, mf, mh;

v = edi();
v = sedi();
f = (double) fy_on() / (fy_on() + fn_on());
h = pod_yes();
b = baser();
Expand Down

0 comments on commit c65c102

Please sign in to comment.