Skip to content

Commit

Permalink
Bugfix #2958 main_v11.1 ORSS (#2972)
Browse files Browse the repository at this point in the history
Co-authored-by: MET Tools Test Account <[email protected]>
  • Loading branch information
JohnHalleyGotway and MET Tools Test Account authored Sep 17, 2024
1 parent c65c102 commit 5248377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcode/vx_statistics/contable_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,11 @@ double TTContingencyTable::lodds_ci(double alpha,
double TTContingencyTable::orss() const {
double v, num, den;

num = fy_oy() * fn_on() - fy_on() * fn_oy();
den = fy_oy() * fn_on() + fy_on() * fn_oy();
num = (double) fy_oy() * fn_on() - (double) fy_on() * fn_oy();
den = (double) fy_oy() * fn_on() + (double) fy_on() * fn_oy();

if(den == 0) v = bad_data_double;
else v = (double) num / den;
if(is_eq(den, 0.0)) v = bad_data_double;
else v = num / den;

return(v);
}
Expand Down

0 comments on commit 5248377

Please sign in to comment.