You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,26 @@ This is appropriate when you have multiple units, one of which is treated. You b
90
90
91
91
> The data (treated and untreated units), pre-treatment model fit, and counterfactual (i.e. the synthetic control) are plotted (top). The causal impact is shown as a blue shaded region. The Bayesian analysis shows shaded Bayesian credible regions of the model fit and counterfactual. Also shown is the causal impact (middle) and cumulative causal impact (bottom).
92
92
93
+
### ANCOVA
94
+
95
+
This is appropriate for non-equivalent group designs when you have a single pre and post intervention measurement and have a treament and a control group.
96
+
97
+
| Group | pre | post |
98
+
|------|---|-------|
99
+
| 0 | $x_1$ | $y_1$ |
100
+
| 0 | $x_2$ | $y_2$ |
101
+
| 1 | $x_3$ | $y_3$ |
102
+
| 1 | $x_4$ | $y_4$ |
103
+
104
+
| Frequentist | Bayesian |
105
+
|--|--|
106
+
| coming soon ||
107
+
108
+
> The data from the control and treatment group are plotted, along with posterior predictive 94% credible intervals. The lower panel shows the estimated treatment effect.
109
+
93
110
### Difference in Differences
94
111
95
-
This is appropriate when you have a single pre and post intervention measurement and have a treament and a control group.
112
+
This is appropriate for non-equivalent group designs when you have pre and post intervention measurement and have a treament and a control group. Unlike the ANCOVA approach, difference in differences is appropriate when there are multiple pre and/or post treatment measurements.
96
113
97
114
Data is expected to be in the following form. Shown are just two units - one in the treated group (`group=1`) and one in the untreated group (`group=0`), but there can of course be multiple units per group. This is panel data (also known as repeated measures) where each unit is measured at 2 time points.
98
115
@@ -107,7 +124,7 @@ Data is expected to be in the following form. Shown are just two units - one in
The data, model fit, and counterfactual are plotted. Frequentist model fits result in points estimates, but the Bayesian analysis results in posterior distributions, represented by the violin plots. The causal impact is the difference between the counterfactual prediction (treated group, post treatment) and the observed values for the treated group, post treatment.
127
+
>The data, model fit, and counterfactual are plotted. Frequentist model fits result in points estimates, but the Bayesian analysis results in posterior distributions, represented by the violin plots. The causal impact is the difference between the counterfactual prediction (treated group, post treatment) and the observed values for the treated group, post treatment.
0 commit comments