
The economist’s data analysis skillset.
What if education benefits genders differently?

What if education benefits genders differently?

\[\text{Wage} = \beta_0 + \beta_1 \times \text{Education} + \beta_2 \times \text{Education} \times \text{Male} + \varepsilon\]
What if education benefits genders differently?
\[\text{Wage} = \beta_0 + \beta_1 \times \text{Education} + \beta_2 \times \text{Education} \times \text{Male} + \varepsilon\]
Implementing the education-gender interaction model
# Fit model with interaction between education and sex
model3 = smf.ols('LNINC ~ EDU + EDU:MALE', data=data).fit()
print(model3.summary().tables[1])A $5,000 raise means different things to different people
Economists almost always use \(\ln(\text{Income})\) since it puts everyone on the same percentage scale.
What does log do to our coefficients?
\[\ln(\text{Income}) = \beta_0 + \beta_1 \times \text{Education} + \beta_2 \times \text{Education} \times \text{Male} + \varepsilon\]
With \(\ln(Y)\), we interpret coefficients as percent changes.
Combining fixed effects and interactions

\[\text{Wage} = \beta_0 + \beta_1 \times \text{Education} + \beta_2 \times \text{Male} + \beta_3 \times \text{Education} \times \text{Male} + \varepsilon\]
Combining fixed effects and interactions
\[\text{Wage} = \beta_0 + \beta_1 \times \text{Education} + \beta_2 \times \text{Male} + \beta_3 \times \text{Education} \times \text{Male} + \varepsilon\]
Implementing the full gender difference model
# Fit full model with both sex indicator and interaction
model4 = smf.ols('LNINC ~ EDU + MALE + EDU:MALE', data=data).fit()
print(model4.summary().tables[1])> allows for differences in both baseline wages and educational returns
Different models answer different questions
Model 1: Fixed Effect
Model 2: Fixed Effect with Control
Model 3: Interaction Only
Model 4: Fixed Effect and Interaction
General linear model for analyzing group differences
Part 5.1 | Categorical Controls (‘Fixed Effects’)
Part 5.2 | Interactions
Model Choice should be guided by your research question