Skip to content

Commit 20aace7

Browse files
committed
Added odds_ratio back to NoEffect
1 parent fd80a23 commit 20aace7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/testing/causal_effect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, atol: float = 1e-10, ctol: float = 0.05):
5656
self.ctol = ctol
5757

5858
def apply(self, res: CausalTestResult) -> bool:
59-
if res.effect_estimate.type in ("risk_ratio", "hazard_ratio", "unit_odds_ratio"):
59+
if res.effect_estimate.type in ("risk_ratio", "hazard_ratio", "unit_odds_ratio", "odds_ratio"):
6060
return any(
6161
ci_low < 1 < ci_high or np.isclose(value, 1.0, atol=self.atol)
6262
for ci_low, ci_high, value in zip(

0 commit comments

Comments
 (0)