@@ -463,18 +463,6 @@ class DifferenceInDifferences(ExperimentalDesign):
463
463
... }
464
464
... )
465
465
... )
466
- >>> result.summary() # doctest: +NUMBER
467
- ===========================Difference in Differences============================
468
- Formula: y ~ 1 + group*post_treatment
469
- <BLANKLINE>
470
- Results:
471
- Causal impact = 0.5, $CI_{94%}$[0.4, 0.6]
472
- Model coefficients:
473
- Intercept 1.0, 94% HDI [1.0, 1.1]
474
- post_treatment[T.True] 0.9, 94% HDI [0.9, 1.0]
475
- group 0.1, 94% HDI [0.0, 0.2]
476
- group:post_treatment[T.True] 0.5, 94% HDI [0.4, 0.6]
477
- sigma 0.0, 94% HDI [0.0, 0.1]
478
466
"""
479
467
480
468
def __init__ (
@@ -726,7 +714,7 @@ def _plot_causal_impact_arrow(self, ax):
726
714
def _causal_impact_summary_stat (self ) -> str :
727
715
"""Computes the mean and 94% credible interval bounds for the causal impact."""
728
716
percentiles = self .causal_impact .quantile ([0.03 , 1 - 0.03 ]).values
729
- ci = "$CI_{94%}$" + f"[{ percentiles [0 ]:.2f} , { percentiles [1 ]:.2f} ]"
717
+ ci = "$CI_{94\\ %}$" + f"[{ percentiles [0 ]:.2f} , { percentiles [1 ]:.2f} ]"
730
718
causal_impact = f"{ self .causal_impact .mean ():.2f} , "
731
719
return f"Causal impact = { causal_impact + ci } "
732
720
0 commit comments