Skip to content

Commit 47d4479

Browse files
committed
plot_ATE -> plot_ate
1 parent 4b8141d commit 47d4479

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

causalpy/experiments/inverse_propensity_weighting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def get_ate(self, i, idata, method="doubly_robust"):
238238
ate = trt - ntrt
239239
return [ate, trt, ntrt]
240240

241-
def plot_ATE(self, idata=None, method=None, prop_draws=100, ate_draws=300):
241+
def plot_ate(self, idata=None, method=None, prop_draws=100, ate_draws=300):
242242
if idata is None:
243243
idata = self.model.idata
244244
if method is None:

causalpy/tests/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_inverse_prop():
8282
assert isinstance(ate_list, list)
8383
ate_list = result.get_ate(0, result.idata, method="overlap")
8484
assert isinstance(ate_list, list)
85-
fig = result.plot_ATE(prop_draws=1, ate_draws=10)
85+
fig = result.plot_ate(prop_draws=1, ate_draws=10)
8686
assert isinstance(fig, mpl.figure.Figure)
8787
fig = result.plot_balance_ecdf("age")
8888
assert isinstance(fig, mpl.figure.Figure)

docs/source/notebooks/inv_prop_pymc.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@
790790
}
791791
],
792792
"source": [
793-
"result1.plot_ATE(method=\"raw\", prop_draws=10, ate_draws=500);"
793+
"result1.plot_ate(method=\"raw\", prop_draws=10, ate_draws=500);"
794794
]
795795
},
796796
{
@@ -825,7 +825,7 @@
825825
}
826826
],
827827
"source": [
828-
"result1.plot_ATE(method=\"overlap\", prop_draws=10, ate_draws=500);"
828+
"result1.plot_ate(method=\"overlap\", prop_draws=10, ate_draws=500);"
829829
]
830830
},
831831
{
@@ -1108,7 +1108,7 @@
11081108
}
11091109
],
11101110
"source": [
1111-
"result.plot_ATE(method=\"robust\", prop_draws=10, ate_draws=500);"
1111+
"result.plot_ate(method=\"robust\", prop_draws=10, ate_draws=500);"
11121112
]
11131113
},
11141114
{
@@ -1128,7 +1128,7 @@
11281128
}
11291129
],
11301130
"source": [
1131-
"result.plot_ATE(method=\"doubly robust\", prop_draws=10, ate_draws=500);"
1131+
"result.plot_ate(method=\"doubly robust\", prop_draws=10, ate_draws=500);"
11321132
]
11331133
},
11341134
{

0 commit comments

Comments
 (0)