Regression Models With Dummy Variables
Regression Models With Dummy Variables
17-2
Is There Evidence of Wage Discrimination?
17-3
17.1 Dummy Variables
LO 17.1 Use dummy variables to capture a shift of the intercept.
17-4
LO 17.1 Variables with Two Categories
◼ For example, suppose we are interested in determining
the impact of gender on salary.
17-6
LO 17.1 Regression with a Dummy Variable
17-7
LO 17.1 Regression with a Dummy Variable
Graphically, we can see how the dummy variable shifts the
intercept of the regression line.
17-8
LO 17.1 Salaries, Gender, and Age
17-9
LO 17.1 Estimation Results
17-10
Testing the Significance of Dummy Variables
LO 17.2 Test for differences between the categories of a qualitative variable.
17-11
LO 17.2 Example 17.2
17-12
Multiple Categories
17-13
Multiple Categories
17-14
LO 17.2 Multiple Categories
17-15
Avoiding the Dummy Variable Trap
◼ Given the intercept term, we exclude one of the dummy
variables from the regression,
17-17
LO 17.3 Modeling Interaction
17-18
LO 17.3 Shifts in the Intercept and the Slope
Graphically, we can see how both the intercept and the
slope might be impacted.
17-19
LO 17.3 Testing for Significance
17-20
LO 17.3 Example 17.4
◼ Our introductory case, is about the impact of gender on
salary. Further “Does additional experience get a higher
reward for one gender over the other?”
17-21
◼
17-22
◼
17-23
◼
17-24
LO 17.3 Predicted Salaries
17-25
17.3: Binary Choice Models
LO 17.4 Use a linear probability model to estimate a binary response variable.
17-26
LO 17.4 The Linear Probability Model
17-27
LO 17.4 Weakness of LPM
17-28
Approval of Loan application
17-29
◼ Here 0.0188 means a 1 percent increase in the down
payment will increase the probability by 0.0118.
17-30
The Logit Model
◼ To address the problem of the LPM that the predicted
probabilities may be negative or greater than 1,
17-32
LO 17.5 Logit versus Linear Probability Model
17-33
LO 17.5 Example 17.6
◼ An educator wants to determine if a student’s interest in
science is linked with the student’s GPA.
17-34
LO 17.5 Predicted Field Choice
17-35
LO 17.5 Example 17.7
17-36
LO 17.5 Prediction Comparison
17-37
Chapter 17 Learning Objectives (LOs)
LO 17.1: Use dummy variables to capture a shift of the
intercept.