|
64 | 64 | "source": [
|
65 | 65 | "### Data Details\n",
|
66 | 66 | "\n",
|
67 |
| - "*Here, we slightly abuse the definition of the potential outcomes. $Y_{i,t}(1)$ corresponds to the (potential) outcome if unit $i$ would have received treatment at time period $\\mathrm{g}$ (where the group $\\mathrm{g}$ is drawn with probabilities based on $Z$).*\n", |
| 67 | + "Here, we slightly abuse the definition of the potential outcomes. $Y_{i,t}(1)$ corresponds to the (potential) outcome if unit $i$ would have received treatment at time period $\\mathrm{g}$ (where the group $\\mathrm{g}$ is drawn with probabilities based on $Z$).\n", |
68 | 68 | "\n",
|
69 | 69 | "More specifically\n",
|
70 | 70 | "\n",
|
|
873 | 873 | "cell_type": "markdown",
|
874 | 874 | "metadata": {},
|
875 | 875 | "source": [
|
876 |
| - "### All combinations\n", |
| 876 | + "### All Combinations\n", |
877 | 877 | "\n",
|
878 | 878 | "The option `gt_combinations=\"all\"` includes all relevant group time values with $t_\\text{pre} < \\min(\\mathrm{g}, t_\\text{eval})$, including longer parallel trend assumptions.\n",
|
879 | 879 | "This can result in multiple estimates for the same $ATT(\\mathrm{g},t)$, which have slightly different assumptions (length of parallel trends)."
|
|
891 | 891 | "dml_obj_all.plot_effects()"
|
892 | 892 | ]
|
893 | 893 | },
|
| 894 | + { |
| 895 | + "cell_type": "markdown", |
| 896 | + "metadata": {}, |
| 897 | + "source": [ |
| 898 | + "### Universal Base Period\n", |
| 899 | + "\n", |
| 900 | + "The option `gt_combinations=\"universal\"` set $t_\\text{pre} = \\mathrm{g} - \\delta - 1$, corresponding to a universal/constant comparison or base period.\n", |
| 901 | + "\n", |
| 902 | + "Remark that this implies $t_\\text{pre} > t_\\text{eval}$ for all pre-treatment periods (accounting for anticipation). Therefore these effects do not have the same straightforward interpretation as ATT's." |
| 903 | + ] |
| 904 | + }, |
| 905 | + { |
| 906 | + "cell_type": "code", |
| 907 | + "execution_count": null, |
| 908 | + "metadata": {}, |
| 909 | + "outputs": [], |
| 910 | + "source": [ |
| 911 | + "dml_obj_universal = DoubleMLDIDMulti(dml_data, **(default_args| {\"gt_combinations\": \"universal\"}))\n", |
| 912 | + "dml_obj_universal.fit()\n", |
| 913 | + "dml_obj_universal.bootstrap(n_rep_boot=5000)\n", |
| 914 | + "dml_obj_universal.plot_effects()" |
| 915 | + ] |
| 916 | + }, |
894 | 917 | {
|
895 | 918 | "cell_type": "markdown",
|
896 | 919 | "metadata": {},
|
|
0 commit comments