Professional Documents
Culture Documents
Dummy Regression Notes
Dummy Regression Notes
Notes
Dummy-Variable Regression
1. Topics
I A Dichotomous explanatory variable
I Polytomous Explanatory Variables
I Modeling Interactions
I The Principle of Marginality
Dummy-Variable Regression 2
Dummy-Variable Regression 4
(a) (b)
Men Men
Income
Income
Women Women
Education Education
Dummy-Variable Regression 6
Dummy-Variable Regression 8
Y
D1
D0
1
1
0 X
Dummy-Variable Regression 10
I Essentially similar results are obtained if we code zero for men and
one for women (Figure 3):
• The sign of is reversed, but its magnitude remains the same.
• The coefficient now gives the income intercept for men.
• It is therefore immaterial which group is coded one and which is coded
zero.
Dummy-Variable Regression 12
Y
D0
D1
1
1
0 X
Dummy-Variable Regression 14
• This model describes three parallel regression planes, which can differ
in their intercepts (see Figure 4):
Blue Collar: = + 11 + 22 +
White Collar: = ( + 2) + 11 + 22 +
Professional: = ( + 3) + 11 + 22 +
Y 2
1 X2
2
1
1 2
1 1
3
1
1
2 1
1
X1
Dummy-Variable Regression 16
Dummy-Variable Regression 18
4. Modeling Interactions
I Two explanatory variables interact in determining a response variable
when the partial effect of one depends on the value of the other.
• Additive models specify the absence of interactions.
• If the regressions in different categories of a qualitative explanatory
variable are not parallel, then the qualitative explanatory variable
interacts with one or more of the quantitative explanatory variables.
• The dummy-regression model can be modified to reflect interactions.
I Consider the hypothetical data in Figure 5 (and contrast these examples
with those shown in Figure 1, where the effects of gender and education
were additive):
• In (a), gender and education are independent, since women and men
have identical education distributions.
• In (b), gender and education are related, since women, on average,
have higher levels of education than men.
c 2010 by John Fox
° York SPIDA
Dummy-Variable Regression 19
(a) (b)
Men
Men
Income
Income
Women
Women
Education Education
Dummy-Variable Regression 20
Dummy-Variable Regression 22
Dummy-Variable Regression 24
Y
D1
1
D0
1
0 X
Dummy-Variable Regression 26
Dummy-Variable Regression 28
(a) (b)
Y Y
D=1 D=1
β+δ δ
D=0
1 1
β
1
α α+γ
α D=0
X X
0 0