Skip to content

Commit 2355e4b

Browse files
committed
review diff-in-diff
1 parent ecf5083 commit 2355e4b

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

causal-inference-for-the-brave-and-true/06-Grouped-and-Dummy-Regression.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@
684684
"source": [
685685
"In this case, when the person hasn't completed 12th grade (dummy off), the average income is 19.9. Whe he or she has completed 12th grade (dummy on), the predicted value or the average income is 24.8449 (19.9405 + 4.9044). Hence, the dummy coefficient captures the difference in means, which is 4.9044 in our case.\n",
686686
"\n",
687-
"More formality, when the dependent variable is binary, as is often the case with treatment indicators, regression captures the ATE perfectly. That is because regression is a linear approximation to the conditional expectation function \\\\(E[Y|X]\\\\) and, in this particular case, the CEF IS linear. Namely, we can define \\\\(E[Y_i|T_i=0]=\\alpha\\\\) and \\\\(E[Y_i|T_i=1] = \\alpha + \\beta\\\\), which leads to the following CEF\n",
687+
"More formally, when the dependent variable is binary, as is often the case with treatment indicators, regression captures the ATE perfectly. That is because regression is a linear approximation to the conditional expectation function \\\\(E[Y|X]\\\\) and, in this particular case, the CEF IS linear. Namely, we can define \\\\(E[Y_i|T_i=0]=\\alpha\\\\) and \\\\(E[Y_i|T_i=1] = \\alpha + \\beta\\\\), which leads to the following CEF\n",
688688
"\n",
689689
"$\n",
690690
"E[Y_i|T_i] = E[Y_i|T_i=0] + \\beta T_i = \\alpha + \\beta T_i\n",

0 commit comments

Comments
 (0)