Skip to content

Commit f737115

Browse files
committed
[IV 212] pretty print user warning
Signed-off-by: Nathaniel <[email protected]>
1 parent efa3f6d commit f737115

File tree

3 files changed

+85
-77
lines changed

3 files changed

+85
-77
lines changed

causalpy/pymc_experiments.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,8 @@ def _input_validation(self):
10051005
check_binary = len(self.data[treatment.strip()].unique()) > 2
10061006
if check_binary:
10071007
warnings.warn(
1008-
"""Warning. The treatment variable is not Binary. \n
1009-
This is not necessarily a problem but it complicates \n
1010-
the interpretation of the model coefficients."""
1008+
"""Warning. The treatment variable is not Binary.
1009+
This is not necessarily aproblem but it violates
1010+
the assumption of a simple IV experiment.
1011+
Change your interpretation of model coefficients accordingly."""
10111012
)

docs/source/_static/interrogate_badge.svg

+3-3
Loading

docs/source/notebooks/iv_pymc.ipynb

+78-71
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)