1 / 7

Chapter 9: Dummy Variables

Chapter 9: Dummy Variables. A Dummy Variable: is a variable that can take on only 2 possible values: yes, no up, down male, female union member, non-union member They provide a method for “quantifying” a “qualitative” variable  The variable D = 1 if yes, D = 0 if no

abdalla
Télécharger la présentation

Chapter 9: Dummy Variables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 9: Dummy Variables A Dummy Variable: is a variable that can take on only 2 possible values: yes, no up, down male, female union member, non-union member They provide a method for “quantifying” a “qualitative” variable  The variable D = 1 if yes, D = 0 if no It doesn’t matter which category gets the 0 or 1.

  2. Estimation with Dummy Variables If the dummy variable is the only independent variable: Yt = 1 + 2Dt + et If D = 0  Yt = 1+ et If D = 1  Yt = (1 + 2) + et Example: Wage data (See class handout) FE = 0 if the person is male FE = 1 if the person is female Waget= 1 + 2FEt + et Least squares regression will produce a b1 and b2 value such that b1 = the mean of the Wage values for the FE=0 values b1 + b2 = the mean of the Wage values for the FE=1 values

  3. Estimation with Dummy Variables If there is one continuous explanatory variable and one dummy variable: Yt = 1 + 2Xt + Dt + et If D = 0  Yt = 1 + 2Xt + et If D = 1  Yt = (1 + ) + 2Xt + et Suppose that 1 >0, 2 >0,  > 0  It is as though we have two regression lines that have the same slope coefficient but have difference intercepts. Y  2 1 +  2 1 X

  4. Estimation with Dummy Variables Example: Wage data (See class handout) FE = 0 if the person is male FE = 1 if the person is female Waget= 1 + 2EDt + 3FEt + et We estimate this model as an ordinary multiple regression model. Our estimate b3 will measure the difference in wages for males vs. females, after controlling for differences in education. See class handout.

  5. Interaction Terms An interaction term is an independent variable that is the product of two other independent variables. These independent variables can be continuous or dummy variables Yt = 1 + 2Xt + 3Zt + 4XtZt + et In this model, the effect of X on Y will depend on the level of Z. In this model, the effect of Z on Y will depend on the level of X.

  6. Interaction Terms Involving Dummy Variables Yt = 1 + 2Xt + 3Dt + 4DtXt + et If D = 0  Yt = 1 + 2Xt + et If D = 1  Yt = (1 + 3 ) + (2+ 4 )Xt + et Suppose that 1 >0, 2 >0, 3 >0, 4 >0  It is as though we have two regression lines that have different slope coefficients and different intercepts. Y 2+4 1 +3 2 1 X

More Related