Skip to content

Commit 2e1d692

Browse files
committed
[IV 212] adding axis labels with Ben's comments
Signed-off-by: Nathaniel <[email protected]>
1 parent f737115 commit 2e1d692

File tree

3 files changed

+82
-91
lines changed

3 files changed

+82
-91
lines changed

causalpy/pymc_experiments.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1002,11 +1002,12 @@ def _input_validation(self):
10021002
as an outcome variable and in the data object to be used as a covariate.
10031003
"""
10041004
)
1005-
check_binary = len(self.data[treatment.strip()].unique()) > 2
1005+
Z = self.data[treatment.strip()]
1006+
check_binary = len(np.unique(Z)) > 2
10061007
if check_binary:
10071008
warnings.warn(
10081009
"""Warning. The treatment variable is not Binary.
1009-
This is not necessarily aproblem but it violates
1010+
This is not necessarily a problem but it violates
10101011
the assumption of a simple IV experiment.
1011-
Change your interpretation of model coefficients accordingly."""
1012+
The coefficients should be interpreted appropriately."""
10121013
)

causalpy/pymc_models.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ def build_model(self, X, Z, y, t, coords, priors):
136136
:param priors: An optional dictionary of priors for the mus and
137137
sigmas of both regressions
138138
139-
e.g priors = {'mus': [[10, 0], [2, 0]], 'sigmas': [[1, 1], [1, 1]]
140-
'eta': 2, 'lkj_sd': 2}
139+
:code:`priors = {"mus": [0, 0], "sigmas": [1, 1], "eta": 2, "lkj_sd": 2}`
141140
142141
"""
143142

docs/source/notebooks/iv_pymc.ipynb

+77-86
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)