Skip to content

Commit

Permalink
[IV 212] pretty print user warning
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel <[email protected]>
  • Loading branch information
NathanielF committed Aug 9, 2023
1 parent efa3f6d commit f737115
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 77 deletions.
7 changes: 4 additions & 3 deletions causalpy/pymc_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,8 @@ def _input_validation(self):
check_binary = len(self.data[treatment.strip()].unique()) > 2
if check_binary:
warnings.warn(
"""Warning. The treatment variable is not Binary. \n
This is not necessarily a problem but it complicates \n
the interpretation of the model coefficients."""
"""Warning. The treatment variable is not Binary.
This is not necessarily aproblem but it violates
the assumption of a simple IV experiment.
Change your interpretation of model coefficients accordingly."""
)
6 changes: 3 additions & 3 deletions docs/source/_static/interrogate_badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 78 additions & 71 deletions docs/source/notebooks/iv_pymc.ipynb

Large diffs are not rendered by default.

0 comments on commit f737115

Please sign in to comment.