{"id":572,"date":"2018-11-12T21:36:50","date_gmt":"2018-11-13T04:36:50","guid":{"rendered":"https:\/\/blogs.ubc.ca\/datawithstata\/?page_id=572"},"modified":"2019-05-07T15:28:41","modified_gmt":"2019-05-07T22:28:41","slug":"instrumental-variable-regression","status":"publish","type":"page","link":"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/instrumental-variable-regression\/","title":{"rendered":"Instrumental Variable Regression"},"content":{"rendered":"<p>Instrumental variable regressions are used when one wants to establish a causal channel through which the explanatory variable affects the dependent variable, but one is worried that the error term in the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression is correlated with the explanatory variable.<\/p>\n<p>To elaborate, in general a statistically significant slope coefficient in an <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression merely indicates a significant correlation between the dependent variable (Y) and the explanatory variable (X). In order to claim that a change in X <em>causes<\/em> a change in Y, it needs to be the case that X is uncorrelated with the unobserved error term (e) in the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression. Otherwise, it is the case that X and Y co-move only because a change in X leads to a change in e, which in turn moves Y. It should be noted that the fitted residuals from the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression are uncorrelated with X by construction, and hence this cannot be used to argue for exogeneity of X. Endogeneity or exogeneity of X can never be proved mathematically, but can only be argued given the particular situation and the X and Y variables considered. Once a researcher is worried that X is endogenous, one possible solution is to use an instrumental variable Z, that is uncorrelated with the error term e but correlated with the endogenous explanatory variable X. In other words, the instrument Z needs to be correlated with Y only through X.<\/p>\n<div id=\"random-accordion-id-64\" class=\"accordion-shortcode  \"><h3 ><a href=\"#example-eswaran-and-malhotra-2-0\" >Example: Eswaran and Malhotra (2011)<\/a><\/h3><div id=\"example-eswaran-and-malhotra-2-0\" class=\"accordian-shortcode-content \" ><\/p>\n<p>The research question of the paper by <a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/files\/2019\/05\/Eswaran-Malhotra-2009-Domestic-Violence-and-Women\u00eds-Autonomy.pdf\">Eswaran and Malhotra (2011)<\/a> is to find the determinants of domestic violence in developing countries and does this violence impinges on women\u2019s autonomy or the reverse. Answering this question empirically is tricky since there is a clear endogeneity issue here: greater female autonomy may impinge on domestic violence and domestic violence may in turn affect female autonomy.<\/p>\n<p>They use two sets of instruments to deal with the endogeneity issue: woman\u2019s current breast-feeding status and an index of the woman\u2019s height. The argument why woman\u2019s breast-feeding status is a good instrument is that since this activity takes away the woman\u2019s time she can devote to her husbands\u2019 demands and thus, its more likely the husband will engage in spousal violence. The reason for using the woman\u2019s height as an instrument is that a husband is less likely to engage in violence if he feels he cannot physically overpower his wife. Moreover, the woman\u2019s height gets determined before marriage and is unlikely to be directly correlated with the socioeconomic status of her husband. For the instruments to be valid, the exclusion restriction requires that the relationship between the instrument and autonomy outcomes be completely mediated by domestic violence.<\/p>\n<p>They estimate the following two-stage least square model:<\/p>\n<p style=\"text-align: center;\">V = \u03b1<sub>1<\/sub>*X + \u03b1<sub>2<\/sub>* Z + \u03b5<sub>1<\/sub><\/p>\n<p style=\"text-align: center;\">D = \u03b2<sub>1<\/sub>*X + \u03b2<sub>2<\/sub>*V + \u03b5<sub>2<\/sub><\/p>\n<p>and the <abbr class='c2c-text-hover' title='Statistical Software for Data Analysis'>STATA<\/abbr> command to implement this will be:<\/p>\n<p><strong>ivregress 2sls<\/strong> D X (V = Z)<\/p>\n<p>where, V is domestic violence reported by the respondent, Z denotes the instrumental variable for domestic violence (either breast-feeding or height), D is the woman\u2019s decision-making autonomy and X denotes a vector of exogenous regressors.<\/p>\n<p>The authors find domestic violence to significantly reduce autonomy and the coefficients are much larger in magnitude as compared to Ordinary least squares method after accounting for the endogeneity of domestic violence using IV\u2019s.<\/p>\n<p>\n<\/div><\/div><!-- #random-accordion-id-64end of accordion shortcode -->\n<div id=\"random-accordion-id-894\" class=\"accordion-shortcode  \"><h3 ><a href=\"#another-example-1\" >Another Example<\/a><\/h3><div id=\"another-example-1\" class=\"accordian-shortcode-content \" ><\/p>\n<p>Let us consider an example. Suppose a researcher is interested in estimating the causal effect of smoking on health. A simple <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression of health on smoking does not establish that smoking causes poor health because other variables like whether or not a person is mentally depressed, may affect both health and smoking. In other words, smoking is endogenous. One possible solution to the problem of endogeneity is to use tax rate for tobacco products as an instrumental variable for smoking. The tax rate for tobacco products is a reasonable choice for an instrument because the researcher assumes that it can only be correlated with health through its effect on smoking. If the researcher then finds tobacco taxes and state of health to be correlated, this may be viewed as evidence that smoking causes changes in health.<\/p>\n<p>In <abbr class='c2c-text-hover' title='Statistical Software for Data Analysis'>STATA<\/abbr>, an instrumental variable regression can be implemented using the following command:<\/p>\n<p><strong>ivregress 2sls <\/strong>y x1 (x2 = z1 z2)<\/p>\n<p>In the above <abbr class='c2c-text-hover' title='Statistical Software for Data Analysis'>STATA<\/abbr> implementation, y is the dependent variable, x1 is an exogenous explanatory variable, x2 is the endogenous explanatory variable which is being instrumented by the variables z1, z2 and also x1. Mathematically, the above IV regression is equivalent to the following simultaneous-equations framework:<\/p>\n<p>(1) x2<sub>i<\/sub> = a<sub>0<\/sub> + a<sub>1<\/sub>z1<sub>i<\/sub> + a<sub>2<\/sub>z2<sub>i<\/sub> + u<sub>i<\/sub><\/p>\n<p>(2) y<sub>i<\/sub> = b<sub>0<\/sub> + b<sub>1<\/sub>x1<sub>i<\/sub> + b<sub>2<\/sub>x2<sub>i<\/sub> + e<sub>i<\/sub><\/p>\n<p>The command option <strong>2sls <\/strong>(2-stage least squares) tells <abbr class='c2c-text-hover' title='Statistical Software for Data Analysis'>STATA<\/abbr> to fit two independent <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regressions (1) and (2) using least squares technique in . Equation (1) is often referred to as the \"first stage regression\". A statistically significant coefficient in the first stage is crucial becuase otherwise it means that the endogenous explanatory variable is not sufficiently correlated with the instrument (leading to the problem of '<em>weak instrument<\/em>').<\/p>\n<p>\n<\/div><\/div><!-- #random-accordion-id-894end of accordion shortcode -->\n","protected":false},"excerpt":{"rendered":"<p>Instrumental variable regressions are used when one wants to establish a causal channel through which the explanatory variable affects the dependent variable, but one is worried that the error term in the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression is correlated with the explanatory variable. &hellip; <a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/instrumental-variable-regression\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":62204,"featured_media":0,"parent":170,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"full-width-page.php","meta":{"footnotes":""},"class_list":["post-572","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/users\/62204"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":20,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/572\/revisions"}],"predecessor-version":[{"id":1227,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/572\/revisions\/1227"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/170"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/media?parent=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}