class: center, middle, inverse, title-slide # Model Specifications ## EC 320: Introduction to Econometrics ### Philip Economides ### Winter 2022 --- class: inverse, middle # Prologue --- # Housekeeping <br> .hi-pink[Data Projects] are in! - I will have those graded by the weekend - Points based on the quality of submissions and presentation of results -- .hi-pink[Problem Set 5] - Due Monday, March 7th --- # Model Specification Concerns the following questions of a given model: -- What are the consequences of including in the regression model a variable that should not be there? -- .hi-pink[Multicollinearity] -- What are the consequences of excluding a variable that should be featured? -- .hi-pink[Omitted Variable Bias] -- How do we test restrictions to model specifications? -- .hi-pink[t and F tests] --- # Model Specification <br> What happens if you have difficulty finding data on a variable and use a proxy instead? .hi-pink[Today's lesson] -- We will then go a useful approach to know for policy analysis: the .hi-pink[difference-in-difference] model --- class: inverse, middle # Proxies in Model Specifications --- # Proxies <br> Suppose you are considering the following model $$ `\begin{aligned} Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + u \end{aligned}` $$ While `\(X_1\)` is observed, lets consider a case where `\(X_2\)` is an unobserved variable. Cases of unobservable data could include: - Vaguely defined with no explicit measure (e.g. quality of education) - Intangible and cannot be quantified (e.g. utility, ability) - Requires so much time/energy that measurement is infeasible - Confidentiality, privacy concerns may limit observed data availability --- # Proxies <br> Rather than exclude the unobservable, you may wish to use an adequate .hi-pink[proxy] variable for `\(X_2\)`. -- A .hi-pink[proxy] variable is a substitute variable that may reasonably be supposed to maintain similar properties to our missing variable. -- .hi-blue[Example:] For quality of education, we could use the student-staff ratio to have a measure of how many resources the educational institution makes available to students. Where quality is high, student-staff ratios are low. --- # Proxies <br> Returning to the model, our true data generating process for Y: $$ `\begin{aligned} Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + u \end{aligned}` $$ -- In the case where we have no data on `\(X_2\)`, suppose we have an .hi-blue[ideal proxy] for it such that there exists an *exact linear relationship `\(X_2\)` and `\(Z\)`*: $$ `\begin{aligned} X_2 = \lambda + \mu Z, \end{aligned}` $$ where `\(\lambda\)` and `\(\mu\)` are fixed, unknown constants. We cannot estimate them by running a regression of the above relationship, since we have no data on `\(X_2\)`. .hi-pink[Let's sub in our expression and see what using Z achieves]. --- # Inference using Proxies Using `\(X_2 = \lambda + \mu Z\)`, $$ `\begin{aligned} Y = & \beta_0 + \beta_1 X_1 + \beta_2 X_2 + u\\ = & \beta_0 + \beta_1 X_1 + \beta_2 (\lambda + \mu Z) + u\\ = & (\beta_0 + \beta_2 \lambda) + \beta_1 X_1 + \beta_2 \mu Z + u\\ = & \ \ \ \ \ \ \ \alpha \ \ \ \ \ \ \ \ \ + \beta_1 X_1 + \ \ \gamma_2 Z + u \end{aligned}` $$ -- Takeaways: 1. `\(\beta_1\)`, its standard error and t-stat will be same as if `\(X_2\)` used 1. `\(R^2\)` will be the same as if `\(X_2\)` was used instead of Z 1. The coefficient of Z, `\(\gamma_2\)`, will be estimate of `\(\beta_2 \mu\)`, and not possible to estimate `\(\beta_2\)` directly 1. t-stat for `\(\gamma_2\)` same as `\(\beta_2\)`, so able to assess significance of `\(X_2\)` 1. Not possible to estimate `\(\beta_0\)` since we now only see `\(\alpha\)` --- # Risks of using Proxies Validity of all the subsequent takeaways rely on the condition that `\(Z\)` is an ideal proxy for `\(X_2\)` - In practice, unusual to find a proxy that is exactly linearly related to our missing variable - If the relationship is close to linear, the results will hold **approximately** - The biggest problem faced is that there is never any manner by which to test this condition of whether the approximated difference is sufficiently small - Critical thinking in explaining your logical link between `\(X_2\)` & `\(Z\)` and accepting that you are relying on a strong assumptions are often required to convince an audience that a proxy is indeed valid --- class: inverse, middle # Difference-in-Difference (DiD) --- # Non-Random Treatment <br> Previously we'd talked about binary categorical variables, known as dummies. An important application of .hi-pink[dummy variables] is to study the impact of a treatment. -- The estimation of treatment effects is important in a wide range of fields. .hi-blue[Examples:] * impact of cash transfers on child health * effect of class size on student achievement -- In clinical trials of health interventions, a common question is whether use of a medicine will improve health outcomes. --- # Non-Random Treatment Ideally treatment effects are evaluated using .hi-pink[randomized controlled trials]. -- If, for convenience, there is only one treatment level, for those treated, then this can be captured by a binary dummy variable, and a simple statistical model can be used: `$$Y_i = \beta_0 + \beta_1 D_i + u_i$$` -- for `\(i = 1, \dots, n,\)` where `\(Di = 1\)` if treated and `\(Di = 0\)` if not treated, and where `\(y_i\)` is the outcome for individual `\(i\)`. -- Random assignment: `\(D_i\)` and `\(u_i\)` are .hi-pink[independent (A3.)], and an OLS regression will yield an .hi-pink[unbiased] estimate `\(\hat\beta_1\)` of `\(\beta_1\)`. Our effect is the diff between mean outcomes for treated and untreated groups, `\(\hat\beta_1 = \bar y_1 - \bar y_0\)`. Also known as the .hi-blue[differences estimator]. --- # Non-Random Treatment <br> Often we are analyzing an intervention (or _treatment_) that takes place .hi-pink[over time], and we have data .hi-pink[both before and after] the treatment took place. -- If the policy intervention affected everyone and we have data both in pre- and post-policy periods, might consider the .hi-blue[differences estimator] > __Problem:__ Implicitly assumes that there are not other reasons for the change in mean outcomes before and after the treatment -- In this case the dummy variable `\(D_i\)` in effect stands for the impact of .hi-pink[all factors], including the treatment, that are different between the pre- and post- periods. --- # Non-Random Treatment Since .hi-pink[other factors] may be partially responsible for the change in means, this estimator may be a biased estimate of the treatment effect. -- This point emphasizes importance of control group that does not receive the treatment. Occasionally policy changes have randomization built in .hi-blue[(randomized field experiments)]. -- > __Example:__ Oregon Health Plan (OHP) experiment of 2008. Oregon that year decided to expand coverage of its version of Medicaid to groups not previously eligible, but for reasons of expense this expanded coverage was rationed by a lottery: somewhat under half of those who registered were randomly selected and invited to apply for expanded coverage. It is then possible to estimate the treatment effect on various outcomes by looking at differences in the sample means of the two groups. --- # DiD: Concept In .hi-pink[most cases], this randomization aspect to policy change does not occur. Due to the paucity of randomized field experiments, applied econometricians have shown great interest in .hi-pink[natural experiments]. -- > __Setting:__ There is a discrete change in policy that affects only part of the population of interest, and that there are both pre- and post-treatment observations for both those who received treatment and those who did not. -- Although the policy change occurs in a non-experimental setting, in some cases the change may be introduced in a way that makes it appear __as if__ the treatment was __randomly assigned__. -- The .hi-pink[difference-in-difference (DiD)] method recognizes that in absence of random assignment, treatment and control groups are likely to differ for many reasons. --- # DiD: Structure <br> Suppose we have data on specific individuals `\(i = 1,\dots, n\)` in each of two time periods `\(t = 1, 2\)` that correspond to before and after the treatment was applied to some of the individuals. A simple statistical formulation of the model is then: -- `$$Y_{it} = \beta_0 + \beta_1 T_t + \beta_2 D_i + \beta_3 (T_t \times D_i) + u_{it}$$` for `\(i = 1,\dots,n,\)` and `\(t = 1, 2\)`. (Note that we have `\(2n\)` data points). -- Here `\(T_t = 1\)` if `\(t = 2\)` and `\(T_t = 0\)` if `\(t = 1\)`, while `\(D_i = 1\)` if individual `\(i\)` receives treatment and `\(D_i = 0\)` if individual `\(i\)` does not receive treatment. --- # DiD: Structure In the .hi-pink[pre-treatment period], `\(t = 1\implies T_t=0\)`, we have `$$E(y_{i1} | D_i = 0) = \beta_0 \text{ and } E(y_{i1} | D_i = 1) = \beta_0 + \beta_2$$` -- In the above specification, we are allowing for the possibility that in the quasi-experiment there was imperfect control, in the sense that those treated had different pre-treatment means than those not treated. -- In the .hi-pink[post-treatment period], `\(t = 2\implies T_t=1\)`, we have `$$E(y_{i2} | D_i = 0) = \beta_0 + \beta_1 \text{ and } E(y_{i2} | D_i = 1) = \beta_0 + \beta_1 + \beta_2 + \beta_3$$` -- The .hi-pink[treatment effect] corresponds to `\(\beta_3\)`: This is because $$ `\begin{aligned} \text{Diff Post-Period:} & \ E(y_{i2} | D_i = 1) - E(y_{i2} | D_i = 0) = \beta_2 + \beta_3 \ \ \text{and}\\ \text{Diff Pre-Period:} & \ E(y_{i1} | D_i = 1) - E(y_{i1} | D_i = 0) = \beta_2 \end{aligned}` $$ --- # DiD: Example _"Monetary Intervention in the Great Depression"_ by .hi-blue[Gary Richardson and William Troost (JPE, 2009)]. -- Consider the 1930s bank failures. Central Bank can prevent bank runs and bank failures by acting as lender of last resort to solvent banks. -- The twelve different regional Federal Reserve Districts reacted in the 1930s to potential bank failures in different ways. -- * Atlanta FRB (sixth district) and St Louis FRB (eighth district) followed radically different policies wrt bank runs & border between two regions runs East-West through the center of Mississippi * Makes for a natural experiment, comparing outcomes for bank failures in Mississippi banks in the two districts --- # DiD: Example The .hi-blue[Sixth District policy] favored using the FRB lender of last resort role to lend to troubled banks, while .hi-blue[Eighth District policy] took the view that credit should be restricted in recessions. -- R&T analyze this using a .hi-pink[DiD approach]. <table class=" lightable-classic" style="font-family: Cambria; width: auto !important; margin-left: auto; margin-right: auto;"> <caption>Bank Losses by Policy</caption> <thead> <tr> <th style="text-align:left;"> Variable </th> <th style="text-align:right;"> 8th District </th> <th style="text-align:right;"> 6th District </th> <th style="text-align:right;"> Diff., 6th-8th </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> No. of Banks open 1930 </td> <td style="text-align:right;"> 165 </td> <td style="text-align:right;"> 135 </td> <td style="text-align:right;"> -30 </td> </tr> <tr> <td style="text-align:left;"> No. of Banks open 1931 </td> <td style="text-align:right;"> 132 </td> <td style="text-align:right;"> 121 </td> <td style="text-align:right;"> -11 </td> </tr> <tr> <td style="text-align:left;"> Changes in banks open </td> <td style="text-align:right;"> -33 </td> <td style="text-align:right;"> -14 </td> <td style="text-align:right;"> 19 </td> </tr> </tbody> </table> Estimated to have saved 19 banks, 14% of Sixth District in 1930. --- # DiD: Required Assumption A central question in assessing quasi-experiments is the .hi-pink[validity] of the control group, so that the treatment is really _as if_ it was randomly assigned. A key issue is the implicit .hi-pink[common trends] assumption: in the absence of the _"treatment"_, would the number of open banks in the two districts have been expected to evolve in the same way? <img src="common_tr.png" width="60%" style="display: block; margin: auto;" /> --- # DiD: Interpretation .hi-pink[DiD Model Results] One can use this data to get an estimate of the treatment effect `\(\hat\beta_3\)` and a standard error `\(SE(\hat\beta_3)\)` for the effect based on these twelve data points: $$ `\begin{aligned} Y_{dt} = 167 - 49 T_t - 29 D_d + 20.5(T_t \times D_d) + u_{dt} \end{aligned}` $$ Here `\(T_t\)` is coded 1 for 1931 or later, and `\(D_d=1\)` for the 6th District. With a t-score of 1.9 and using a two-tailed test, significant at 10% level. This is about the most evidence one could hope for with twelve data points. --- # DiD: Interpretation <img src="15-Model-Spec_files/figure-html/plot-banks-1.png" width="90%" style="display: block; margin: auto;" /> -- Let's do the same .hi-pink[DiD] with other outcome variables! --- # DiD: Interpretation <img src="table5_1.png" width="90%" style="display: block; margin: auto;" /> -- # DiD This .hi-pink[policy change] seems to have prevented a harsher impact on existing firms, when assessing sales performance and numbers of firms. --- class: inverse, middle # DiD: MLDA Laws --- # MLDA Laws This DiD estimates MLDA-induced deaths among 18-20 year olds, from 1970-1983. -- **1933:** End of the federal alcohol Prohibition. Most states regulated the .hi-pink[Minimum Legal Drinking Age] to 21. However, some states including Kansas, New York and North Carolina maintained a drinking age of 18. -- **1971:** Voting ages were reduced to 18, and many states coincided this policy change of MLDA to 18. Arkansas, California, and Pennsylvania are among states that kept MLDA at 21. -- **1984:** National Minimum Drinking Age Act punished states set to 18 by withholding federal highway construction aid. -- .hi-blue[What happened between 1970 and 1984 when drinking age was reduced?] --- # MLDA: DiD model <br> .hi-blue[Dependent variable:] death rates of 18-20 year olds in state `\(s\)` and year `\(t\)`. For simplicity, sample includes only Alabama (treated) and Arkansas (control). -- `$$Y_{st} = \beta_0 + \beta_1 \text{D}_s + \beta_2 \text{T}_t + \beta_3 (D_s \times T_t) + u_{st},$$` -- where `\(D_s\)` indicates whether a given state is Alabama, and `\(T_t\)` is a post-period dummy for whether observations are from 1975 onward when Alabama introduced an MLDA of 19. -- .hi-pink[Key Assumption:] Pre-policy (prior to 1975), Alabama and Arkansas shared parallel trends in their death rates of 18-20 year olds. --- # MLDA: DiD model What about the other states? Would we not want to use more observations? Ideally, yes, but this will introduce further econometric challenges. -- * States did not all lower to 18 at the same time, meaning there is no common post-treatment period. * Unobservable differences exist across states, constant across time. * Absense of a common treatment variable in a multi-state setting, since states chose ages of 18,19 and 20. -- To solve for these issues, use .hi-blue[year dummies], .hi-blue[state fixed effects], and replace `\(T_t \times D_d\)` with a .hi-blue[common treatment variable], `\(LEGAL_{st}\)`, which measures the proportion of 18-20 year-olds allowed to drink in state `\(s\)` and year `\(t\)`. --- # MLDA: DiD model <br> The .hi-blue[multistate regression] DiD model looks like: `$$Y_{st} = \alpha_0 + \alpha_1 LEGAL_{st} + \sum_{k=\text{Alaska}}^{\text{Wyoming}} \alpha_k \text{State}_{ks} +\sum_{j=\text{1971}}^{\text{1983}} \alpha_j \text{Year}_{jt} + \nu_{st},$$` where now we are using state and year dummies to capture fixed effects, which uses Alabama as our reference state and 1970 as our reference year. -- .hi-blue[State-Year Panel Data:] Including District of Col. we have 51 "states" and 14 years, giving us 714 observations. -- Regression results suggest that there was a significant increase in deaths, largely attributed to motor vehicle accidents. --- # MLDA: Results <img src="table5_2.png" width="90%" style="display: block; margin: auto;" /> --- # MLDA: Assumptions The inclusion of many states and many years of observations allows us to relax the .hi-pink[common trends] assumption. Including .hi-blue[state trends] violates this assumption, by allowing for a degree of non-parallel evolution in outcomes between state in the absense of a treatment effect. -- With state trends factored in: $$ `\begin{aligned} Y_{st} =& \alpha_0 + \alpha_1 LEGAL_{st} + \sum_{k=\text{Alaska}}^{\text{Wyoming}} \alpha_k \text{State}_{ks} +\sum_{j=\text{1971}}^{\text{1983}} \alpha_j \text{Year}_{jt}\\ & \sum_{k=\text{Alaska}}^{\text{Wyoming}} \theta_k (\text{State}_{ks} \times t)+ \varepsilon_{st}, \end{aligned}` $$ .hi-blue[What does this allow us to address?] --- # MLDA: Assumptions <img src="fig5_4.png" width="80%" style="display: block; margin: auto;" /> --- # MLDA: Assumptions <img src="fig5_5.png" width="80%" style="display: block; margin: auto;" /> --- # MLDA: Assumptions <img src="fig5_6.png" width="80%" style="display: block; margin: auto;" /> --- exclude: true